Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/alanwnl/pdfChat
Browse files
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((
|
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()
|