DreamStream-1 commited on
Commit
6603914
·
verified ·
1 Parent(s): 7d62d32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -175,7 +175,9 @@ results_output = gr.Dataframe(headers=[
175
  # Function to allow CSV download
176
  def download_results(results):
177
  df = pd.DataFrame(results, columns=["Resume File", "Similarity Score (%)", "Eligibility", "Candidate Name", "Leadership Experience", "Email", "Contact"])
178
- return df.to_csv(index=False)
 
 
179
 
180
  # Gradio Interface
181
  interface = gr.Interface(
 
175
  # Function to allow CSV download
176
  def download_results(results):
177
  df = pd.DataFrame(results, columns=["Resume File", "Similarity Score (%)", "Eligibility", "Candidate Name", "Leadership Experience", "Email", "Contact"])
178
+ csv_file = "/tmp/results.csv"
179
+ df.to_csv(csv_file, index=False)
180
+ return csv_file # Return the file path
181
 
182
  # Gradio Interface
183
  interface = gr.Interface(