Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +16 -3
Gradio_UI.py
CHANGED
|
@@ -87,9 +87,22 @@ def continue_conversation(user_input):
|
|
| 87 |
with gr.Blocks(title="Regulatory Compliance Generator") as demo:
|
| 88 |
gr.Markdown("## 📑 Regulation Document Generator")
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
def update_doc_dropdown(selected_reg):
|
| 95 |
if selected_reg in DOCUMENT_TO_MODULE:
|
|
|
|
| 87 |
with gr.Blocks(title="Regulatory Compliance Generator") as demo:
|
| 88 |
gr.Markdown("## 📑 Regulation Document Generator")
|
| 89 |
|
| 90 |
+
with gr.Row():
|
| 91 |
+
reg_dropdown = gr.Dropdown(
|
| 92 |
+
choices=list(DOCUMENT_TO_MODULE.keys()),
|
| 93 |
+
label="Select Regulation",
|
| 94 |
+
value=None,
|
| 95 |
+
interactive=True,
|
| 96 |
+
info="-- Please choose a regulation --"
|
| 97 |
+
)
|
| 98 |
+
doc_dropdown = gr.Dropdown(
|
| 99 |
+
label="Select Document Type",
|
| 100 |
+
choices=[],
|
| 101 |
+
value=None,
|
| 102 |
+
interactive=True,
|
| 103 |
+
info="-- Select a document after choosing a regulation --"
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
|
| 107 |
def update_doc_dropdown(selected_reg):
|
| 108 |
if selected_reg in DOCUMENT_TO_MODULE:
|