ragunath-ravi commited on
Commit
620f836
·
verified ·
1 Parent(s): 02fc469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -10,8 +10,8 @@ import logging
10
  # Import required libraries
11
  from huggingface_hub import InferenceClient
12
  from langchain.text_splitter import RecursiveCharacterTextSplitter
13
- from langchain.embeddings import HuggingFaceEmbeddings
14
- from langchain.vectorstores import FAISS
15
  from langchain.docstore.document import Document
16
 
17
  # Import document parsers
@@ -478,15 +478,14 @@ def create_interface():
478
  height=500,
479
  elem_classes=["chat-container"],
480
  show_copy_button=True,
481
- bubble_full_width=False
482
  )
483
 
484
  with gr.Row():
485
  msg = gr.Textbox(
486
  label="Ask a question about your documents...",
487
  placeholder="What are the key findings in the uploaded documents?",
488
- scale=4,
489
- submit=True
490
  )
491
  submit_btn = gr.Button("Send 🚀", scale=1, variant="primary")
492
 
 
10
  # Import required libraries
11
  from huggingface_hub import InferenceClient
12
  from langchain.text_splitter import RecursiveCharacterTextSplitter
13
+ from langchain_community.embeddings import HuggingFaceEmbeddings
14
+ from langchain_community.vectorstores import FAISS
15
  from langchain.docstore.document import Document
16
 
17
  # Import document parsers
 
478
  height=500,
479
  elem_classes=["chat-container"],
480
  show_copy_button=True,
481
+ type="messages"
482
  )
483
 
484
  with gr.Row():
485
  msg = gr.Textbox(
486
  label="Ask a question about your documents...",
487
  placeholder="What are the key findings in the uploaded documents?",
488
+ scale=4
 
489
  )
490
  submit_btn = gr.Button("Send 🚀", scale=1, variant="primary")
491