Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ else:
|
|
45 |
]
|
46 |
|
47 |
text_splitter = RecursiveCharacterTextSplitter(
|
48 |
-
chunk_size=
|
49 |
-
chunk_overlap=
|
50 |
add_start_index=True,
|
51 |
strip_whitespace=True,
|
52 |
separators=["\n\n", "\n", ".", " ", ""],
|
@@ -221,7 +221,7 @@ Question: %s
|
|
221 |
# Create a chat interface
|
222 |
demo = gr.ChatInterface(
|
223 |
respond,
|
224 |
-
examples=[["What is the
|
225 |
additional_inputs_accordion=gr.Accordion(
|
226 |
label="⚙️ Parameters", open=False, render=False
|
227 |
),
|
|
|
45 |
]
|
46 |
|
47 |
text_splitter = RecursiveCharacterTextSplitter(
|
48 |
+
chunk_size=2000,
|
49 |
+
chunk_overlap=100,
|
50 |
add_start_index=True,
|
51 |
strip_whitespace=True,
|
52 |
separators=["\n\n", "\n", ".", " ", ""],
|
|
|
221 |
# Create a chat interface
|
222 |
demo = gr.ChatInterface(
|
223 |
respond,
|
224 |
+
examples=[["What is the Transformer?"], ["Tell me About Huggingface."], ["How to upload dataset?"]],
|
225 |
additional_inputs_accordion=gr.Accordion(
|
226 |
label="⚙️ Parameters", open=False, render=False
|
227 |
),
|