Penality commited on
Commit
5b4c39c
·
verified ·
1 Parent(s): 20218cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,7 +56,8 @@ def chatbot(pdf_file, user_question):
56
  )
57
 
58
  # Return chatbot's response
59
- return response["choices"][0]["text"]
 
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(