Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -191,12 +191,20 @@ def run_interface(questions_json, resumes_zip):
|
|
| 191 |
print(f"Error in run_interface: {str(e)}")
|
| 192 |
raise gr.Error(f"Processing failed: {str(e)}")
|
| 193 |
|
| 194 |
-
# Set up the Gradio interface with
|
| 195 |
interface = gr.Interface(
|
| 196 |
fn=run_interface,
|
| 197 |
inputs=[
|
| 198 |
-
gr.File(
|
| 199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
],
|
| 201 |
outputs=gr.File(label="Processed Results Excel"),
|
| 202 |
title="Resume Analysis System",
|
|
|
|
| 191 |
print(f"Error in run_interface: {str(e)}")
|
| 192 |
raise gr.Error(f"Processing failed: {str(e)}")
|
| 193 |
|
| 194 |
+
# Set up the Gradio interface with correct file type parameters
|
| 195 |
interface = gr.Interface(
|
| 196 |
fn=run_interface,
|
| 197 |
inputs=[
|
| 198 |
+
gr.File(
|
| 199 |
+
label="Upload questions.json",
|
| 200 |
+
type="binary", # Changed from 'file' to 'binary'
|
| 201 |
+
file_types=[".json"]
|
| 202 |
+
),
|
| 203 |
+
gr.File(
|
| 204 |
+
label="Upload ZIP of Resumes",
|
| 205 |
+
type="binary", # Changed from 'file' to 'binary'
|
| 206 |
+
file_types=[".zip"]
|
| 207 |
+
)
|
| 208 |
],
|
| 209 |
outputs=gr.File(label="Processed Results Excel"),
|
| 210 |
title="Resume Analysis System",
|