Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def chatbot(pdf_file, user_question):
|
|
| 60 |
)
|
| 61 |
|
| 62 |
# Return chatbot's response
|
| 63 |
-
return response.choices[0].
|
| 64 |
except Exception as e:
|
| 65 |
return f"Error generating response: {e}"
|
| 66 |
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
# Return chatbot's response
|
| 63 |
+
return response.choices[0].text
|
| 64 |
except Exception as e:
|
| 65 |
return f"Error generating response: {e}"
|
| 66 |
|