Penality commited on
Commit
5e8d963
·
verified ·
1 Parent(s): 49d0de6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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].message.content.strip()
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