DreamStream-1 commited on
Commit
9ecd3a2
·
verified ·
1 Parent(s): 9deaef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -105,9 +105,6 @@ def check_similarity(job_description, resume_files):
105
  csv_file_path = save_results_to_csv(results)
106
  return results, csv_file_path
107
 
108
- def download_results(results):
109
- return save_results_to_csv(results)
110
-
111
  # Gradio UI
112
  with gr.Blocks() as demo:
113
  with gr.Row():
@@ -122,7 +119,7 @@ with gr.Blocks() as demo:
122
  check_button.click(
123
  check_similarity,
124
  inputs=[job_desc_input, resume_input],
125
- outputs=[results_output, gr.File(label="Download CSV", value=download_results)]
126
  )
127
 
128
  demo.launch()
 
105
  csv_file_path = save_results_to_csv(results)
106
  return results, csv_file_path
107
 
 
 
 
108
  # Gradio UI
109
  with gr.Blocks() as demo:
110
  with gr.Row():
 
119
  check_button.click(
120
  check_similarity,
121
  inputs=[job_desc_input, resume_input],
122
+ outputs=[results_output, gr.File(label="Download CSV", file_path="/tmp/results.csv")]
123
  )
124
 
125
  demo.launch()