alanwnl commited on
Commit
e8c78f3
2 Parent(s): 91fa71a d468883

Merge branch 'main' of https://huggingface.co/spaces/alanwnl/pdfChat

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -190,7 +190,7 @@ def chatbot_respond(question, chat_history, url, file, openAI_key, openAI_base,
190
 
191
  bot_message = question_answer(url, file, question, openAI_key, openAI_base,
192
  openAI_API_version)
193
- chat_history.append((message, bot_message))
194
  return "", chat_history
195
 
196
  recommender = SemanticSearch()
@@ -247,4 +247,5 @@ with gr.Blocks() as demo:
247
  outputs=[question, chatbot],
248
  )
249
 
 
250
  demo.launch()
 
190
 
191
  bot_message = question_answer(url, file, question, openAI_key, openAI_base,
192
  openAI_API_version)
193
+ chat_history.append((question, bot_message))
194
  return "", chat_history
195
 
196
  recommender = SemanticSearch()
 
247
  outputs=[question, chatbot],
248
  )
249
 
250
+
251
  demo.launch()