momegas commited on
Commit
7f62156
1 Parent(s): d815129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -70,7 +70,7 @@ embeddings = list(embedding_model.embed([text.page_content for text in texts]))
70
 
71
 
72
  with gr.Blocks() as demo:
73
- chatbot = gr.Chatbot(height=1000)
74
  msg = gr.Textbox()
75
  clear = gr.ClearButton([msg, chatbot])
76
 
@@ -103,6 +103,8 @@ with gr.Blocks() as demo:
103
  bot_message = output[0]["generated_text"]
104
  bot_message += "\n \n"
105
  bot_message += "Document sources"
 
 
106
 
107
  for i, doc in enumerate(result_docs):
108
  bot_message += f"⚫️ Source {i+1}: {doc.page_content}\n Document link: N/A Page: N/A \n"
 
70
 
71
 
72
  with gr.Blocks() as demo:
73
+ chatbot = gr.Chatbot(height=800)
74
  msg = gr.Textbox()
75
  clear = gr.ClearButton([msg, chatbot])
76
 
 
103
  bot_message = output[0]["generated_text"]
104
  bot_message += "\n \n"
105
  bot_message += "Document sources"
106
+ bot_message += "\n \n"
107
+
108
 
109
  for i, doc in enumerate(result_docs):
110
  bot_message += f"⚫️ Source {i+1}: {doc.page_content}\n Document link: N/A Page: N/A \n"