StevenMSAI commited on
Commit
4f9d704
·
verified ·
1 Parent(s): c62981a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -179,10 +179,6 @@ with gr.Blocks(title="Group 5 Study Helper (RAG)") as demo:
179
  build_btn = gr.Button("Build Index", variant="primary")
180
  status = gr.Markdown()
181
  chunk_count = gr.Number(label="Chunk count", interactive=False)
182
- with gr.Row():
183
- reset_btn = gr.Button("Reset (clear memory & UI)")
184
- # ClearButton clears UI components
185
- gr.ClearButton([file_in, question, answer, status])
186
 
187
 
188
  with gr.Row():
@@ -195,6 +191,11 @@ with gr.Blocks(title="Group 5 Study Helper (RAG)") as demo:
195
  with gr.Row():
196
  answer = gr.Markdown(label="Answer")
197
 
 
 
 
 
 
198
  def _build(files):
199
  msg, n = build_index(files)
200
  return msg, n or 0
 
179
  build_btn = gr.Button("Build Index", variant="primary")
180
  status = gr.Markdown()
181
  chunk_count = gr.Number(label="Chunk count", interactive=False)
 
 
 
 
182
 
183
 
184
  with gr.Row():
 
191
  with gr.Row():
192
  answer = gr.Markdown(label="Answer")
193
 
194
+ with gr.Row():
195
+ reset_btn = gr.Button("Reset (clear memory & UI)")
196
+ # ClearButton clears UI components
197
+ gr.ClearButton([file_in, question, answer, status])
198
+
199
  def _build(files):
200
  msg, n = build_index(files)
201
  return msg, n or 0