arjunanand13 commited on
Commit
ed99897
·
verified ·
1 Parent(s): ecad0ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
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 better error handling
195
  interface = gr.Interface(
196
  fn=run_interface,
197
  inputs=[
198
- gr.File(label="Upload questions.json", type="file"),
199
- gr.File(label="Upload ZIP of Resumes", type="file")
 
 
 
 
 
 
 
 
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",