Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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(
|