Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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 |
+
|