Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,8 @@ def chatbot(pdf_file, user_question):
|
|
| 56 |
)
|
| 57 |
|
| 58 |
# Return chatbot's response
|
| 59 |
-
return response
|
|
|
|
| 60 |
|
| 61 |
# Gradio Interface
|
| 62 |
iface = gr.Interface(
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
# Return chatbot's response
|
| 59 |
+
return response.choices[0].text
|
| 60 |
+
|
| 61 |
|
| 62 |
# Gradio Interface
|
| 63 |
iface = gr.Interface(
|