Spaces:
Sleeping
Sleeping
Commit
·
a2b61a0
1
Parent(s):
1cec090
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,8 @@ def get_response(prompt):
|
|
| 86 |
def extract(file, prompt_text):
|
| 87 |
if file is None:
|
| 88 |
return "Please upload a file."
|
| 89 |
-
|
| 90 |
-
|
| 91 |
|
| 92 |
gr.close_all()
|
| 93 |
gr.close_all()
|
|
|
|
| 86 |
def extract(file, prompt_text):
|
| 87 |
if file is None:
|
| 88 |
return "Please upload a file."
|
| 89 |
+
prompt = get_prompt(file.name, prompt_text)
|
| 90 |
+
return get_response(prompt)
|
| 91 |
|
| 92 |
gr.close_all()
|
| 93 |
gr.close_all()
|