barghavani commited on
Commit
bcad65d
·
verified ·
1 Parent(s): f6ebf9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -97,7 +97,8 @@ def on_file_upload(filename, file_content):
97
 
98
  def main():
99
  input_api_key = Textbox(label="Enter your OpenAI API Key")
100
- input_pdf_file = File(label="Upload your PDF resume")
 
101
  output_yaml = Textbox(label="Formatted Resume in YAML")
102
 
103
  iface = gr.Interface(
@@ -112,3 +113,4 @@ def main():
112
 
113
  if __name__ == "__main__":
114
  main()
 
 
97
 
98
  def main():
99
  input_api_key = Textbox(label="Enter your OpenAI API Key")
100
+ # Specify the type as 'file' to ensure a file-like object is passed to your function
101
+ input_pdf_file = File(label="Upload your PDF resume", type="file")
102
  output_yaml = Textbox(label="Formatted Resume in YAML")
103
 
104
  iface = gr.Interface(
 
113
 
114
  if __name__ == "__main__":
115
  main()
116
+