Akjava commited on
Commit
ba0ce3e
·
verified ·
1 Parent(s): 197cc19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -45,8 +45,8 @@ else:
45
  ]
46
 
47
  text_splitter = RecursiveCharacterTextSplitter(
48
- chunk_size=1000,
49
- chunk_overlap=50,
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 Transform?"], ["Tell me About Huggingface."], ["How to upload dataset?"]],
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
  ),