Tafazzul-Nadeeem commited on
Commit
cbee133
·
1 Parent(s): 2b2e182

Chatbot ready and deployment checked

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,7 +137,7 @@ with gr.Blocks() as demo:
137
 
138
  if rag_decision == True:
139
  #Call Agent2 - the RAG Retrieval Agent
140
- top_k_results = agent2_use_rag(clean_messages[-1]["content"][0]["text"], k=3)
141
  # Append the top k results to the messages
142
  for i, result in enumerate(top_k_results):
143
  clean_messages.append({
@@ -174,7 +174,7 @@ with gr.Blocks() as demo:
174
  )
175
  chatbot = gr.Chatbot(type="messages",
176
  render_markdown=True,
177
- height=600)
178
  chat_input = gr.MultimodalTextbox(
179
  interactive=True,
180
  file_count="multiple",
 
137
 
138
  if rag_decision == True:
139
  #Call Agent2 - the RAG Retrieval Agent
140
+ top_k_results = agent2_use_rag(clean_messages[-1]["content"][0]["text"], k=5)
141
  # Append the top k results to the messages
142
  for i, result in enumerate(top_k_results):
143
  clean_messages.append({
 
174
  )
175
  chatbot = gr.Chatbot(type="messages",
176
  render_markdown=True,
177
+ height=400)
178
  chat_input = gr.MultimodalTextbox(
179
  interactive=True,
180
  file_count="multiple",