barghavani commited on
Commit
f914500
·
verified ·
1 Parent(s): 7a9bfed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -102,7 +102,8 @@ def main():
102
 
103
  iface = gr.Interface(
104
  fn=format_resume_to_yaml,
105
- inputs=[input_api_key, File(label="Upload your PDF resume", upload_event=on_file_upload)],
 
106
  outputs=output_yaml,
107
  title="Resume to YAML Formatter",
108
  description="Upload a PDF resume and enter your OpenAI API key to get it formatted to a YAML template.",
 
102
 
103
  iface = gr.Interface(
104
  fn=format_resume_to_yaml,
105
+ inputs=[input_api_key, input_pdf_file],
106
+ on_file_change=on_file_upload,
107
  outputs=output_yaml,
108
  title="Resume to YAML Formatter",
109
  description="Upload a PDF resume and enter your OpenAI API key to get it formatted to a YAML template.",