rivapereira123 commited on
Commit
8e7c3a6
Β·
verified Β·
1 Parent(s): 0e43481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -16,6 +16,8 @@ from modules.analysis import fetch_and_analyze_linkedin
16
  from utils.constants import completed_tasks
17
  from modules.memory import save_to_memory, recall_from_memory
18
  import textwrap
 
 
19
 
20
 
21
  # ==== Global Variables ====
@@ -255,21 +257,15 @@ input, textarea {
255
  with gr.Column(scale=1):
256
  linkedin_url_input = gr.Textbox(label="LinkedIn Profile URL", placeholder="Paste your LinkedIn profile URL here", interactive=True)
257
  analyze_linkedin_btn = gr.Button("Analyze LinkedIn Profile")
258
- gr.Markdown("### Or analyze a local Apify dataset CSV")
259
- apify_dataset_btn = gr.Button("Analyze Apify Dataset (CSV)")
260
  with gr.Column(scale=2):
261
  linkedin_analysis_output = gr.Markdown("", label="LinkedIn Analysis Results")
262
 
 
263
  analyze_linkedin_btn.click(
264
  fn=fetch_and_analyze_linkedin,
265
  inputs=[linkedin_url_input],
266
  outputs=linkedin_analysis_output
267
  )
268
- apify_dataset_btn.click(
269
- fn=analyze_apify_dataset_ui,
270
- inputs=[],
271
- outputs=linkedin_analysis_output
272
- )
273
 
274
  with gr.Tab("πŸ™ GitGuru (GitHub Reviewer)"):
275
  with gr.Row():
 
16
  from utils.constants import completed_tasks
17
  from modules.memory import save_to_memory, recall_from_memory
18
  import textwrap
19
+ from modules.analysis import fetch_and_analyze_linkedin # Import the function for LinkedIn analysis
20
+
21
 
22
 
23
  # ==== Global Variables ====
 
257
  with gr.Column(scale=1):
258
  linkedin_url_input = gr.Textbox(label="LinkedIn Profile URL", placeholder="Paste your LinkedIn profile URL here", interactive=True)
259
  analyze_linkedin_btn = gr.Button("Analyze LinkedIn Profile")
 
 
260
  with gr.Column(scale=2):
261
  linkedin_analysis_output = gr.Markdown("", label="LinkedIn Analysis Results")
262
 
263
+ # When the button is clicked, analyze the LinkedIn profile
264
  analyze_linkedin_btn.click(
265
  fn=fetch_and_analyze_linkedin,
266
  inputs=[linkedin_url_input],
267
  outputs=linkedin_analysis_output
268
  )
 
 
 
 
 
269
 
270
  with gr.Tab("πŸ™ GitGuru (GitHub Reviewer)"):
271
  with gr.Row():