Spaces:
Running
Running
Update app.py
Browse files
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 "
|
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", "
|
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():
|