pritish commited on
Commit
7ffd006
·
1 Parent(s): 60e0afe

changed UI

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def pdf_to_text(path, start_page=1, end_page=None):
37
  return text_list
38
 
39
 
40
- def text_to_chunks(texts, word_length=100, start_page=1):
41
  text_toks = [t.split(' ') for t in texts]
42
  page_nums = []
43
  chunks = []
@@ -190,7 +190,7 @@ with gr.Blocks() as demo:
190
  btn1.click(load_corpus, inputs=[url, file], outputs=[stataus])
191
 
192
  with gr.Group():
193
- gr.Markdown('### Step 2: Now you can ask Quesitons:')
194
  gr.Markdown('<br>')
195
  question = gr.Textbox(label='question')
196
  btn2 = gr.Button(value='Submit')
 
37
  return text_list
38
 
39
 
40
+ def text_to_chunks(texts, word_length=150, start_page=1):
41
  text_toks = [t.split(' ') for t in texts]
42
  page_nums = []
43
  chunks = []
 
190
  btn1.click(load_corpus, inputs=[url, file], outputs=[stataus])
191
 
192
  with gr.Group():
193
+ gr.Markdown('### Step 2: Now you can ask Questions:')
194
  gr.Markdown('<br>')
195
  question = gr.Textbox(label='question')
196
  btn2 = gr.Button(value='Submit')