anishde commited on
Commit
43d73b0
1 Parent(s): b7af658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -213,7 +213,7 @@ def chain_function(checkbox_values):
213
  output = chain3()
214
  elif "Legal Document" in checkbox_values:
215
  output = chain2()
216
- elif "Study Material" in checkbox_values:
217
  output = chain1()
218
  else:
219
  output = "Please select a document type to run."
@@ -291,7 +291,7 @@ with gr.Blocks(theme="monochrome") as demo:
291
 
292
  with gr.Row():
293
  with gr.Column():
294
- checkbox_values = gr.CheckboxGroup(["Research Paper", "Legal Document", "Study Material"], label="Choose the document type")
295
  uploaded_file = gr.Files(height=100, file_count="multiple", file_types=["text", ".docx", "pdf"], interactive=True, label="Upload your File.")
296
  btn = gr.Button("Submit") # Place the button outside the Row for vertical alignment
297
  with gr.Column():
 
213
  output = chain3()
214
  elif "Legal Document" in checkbox_values:
215
  output = chain2()
216
+ elif "General Text" in checkbox_values:
217
  output = chain1()
218
  else:
219
  output = "Please select a document type to run."
 
291
 
292
  with gr.Row():
293
  with gr.Column():
294
+ checkbox_values = gr.CheckboxGroup(["Research Paper", "Legal Document", "General Text"], label="Choose the document type")
295
  uploaded_file = gr.Files(height=100, file_count="multiple", file_types=["text", ".docx", "pdf"], interactive=True, label="Upload your File.")
296
  btn = gr.Button("Submit") # Place the button outside the Row for vertical alignment
297
  with gr.Column():