dipenvekaria commited on
Commit
c5ca649
·
verified ·
1 Parent(s): 069417b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -251,28 +251,9 @@ with gr.Blocks(theme=modern_theme, css=custom_css) as demo:
251
  scale=2 # 20% of the row
252
  )
253
 
254
- # Right Column: Document Info and File Upload (30% width)
255
  with gr.Column(scale=3):
256
- # Document Info Section (Collapsed by default)
257
- with gr.Accordion("Document Info", open=False):
258
- files_display = gr.Textbox(
259
- value="\n".join(sorted(processor.get_processed_files())),
260
- label="Processed Documents",
261
- interactive=False,
262
- lines=5,
263
- max_lines=5,
264
- elem_classes="info-box"
265
- )
266
- chunks_display = gr.Textbox(
267
- value="Query results will appear here",
268
- label="Retrieved Chunks",
269
- interactive=False,
270
- lines=5,
271
- max_lines=5,
272
- elem_classes="info-box"
273
- )
274
-
275
- # File Upload Section (Collapsed by default)
276
  with gr.Accordion("File Upload", open=False):
277
  file_upload = gr.File(
278
  label="Drop PDF here",
@@ -290,6 +271,25 @@ with gr.Blocks(theme=modern_theme, css=custom_css) as demo:
290
  interactive=False,
291
  elem_classes="status-text"
292
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
 
294
  # Event handlers
295
  send_btn.click(
 
251
  scale=2 # 20% of the row
252
  )
253
 
254
+ # Right Column: File Upload and Document Info (30% width)
255
  with gr.Column(scale=3):
256
+ # File Upload Section (Collapsed by default, now above)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  with gr.Accordion("File Upload", open=False):
258
  file_upload = gr.File(
259
  label="Drop PDF here",
 
271
  interactive=False,
272
  elem_classes="status-text"
273
  )
274
+
275
+ # Document Info Section (Collapsed by default, now below)
276
+ with gr.Accordion("Document Info", open=False):
277
+ files_display = gr.Textbox(
278
+ value="\n".join(sorted(processor.get_processed_files())),
279
+ label="Processed Documents",
280
+ interactive=False,
281
+ lines=5,
282
+ max_lines=5,
283
+ elem_classes="info-box"
284
+ )
285
+ chunks_display = gr.Textbox(
286
+ value="Query results will appear here",
287
+ label="Retrieved Chunks",
288
+ interactive=False,
289
+ lines=5,
290
+ max_lines=5,
291
+ elem_classes="info-box"
292
+ )
293
 
294
  # Event handlers
295
  send_btn.click(