Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3214,8 +3214,8 @@ def main():
|
|
| 3214 |
|
| 3215 |
with gr.Accordion("3] Q&A", open=False):
|
| 3216 |
with gr.Row():
|
| 3217 |
-
clarification_text = gr.Textbox(label="Clarification / Follow-Up Questions", placeholder="Tailored clarifying suggestions will appear here...", lines=6, scale = 4)
|
| 3218 |
gen_followups = gr.Button("Generate Tailored Clarification Questions", scale=1)
|
|
|
|
| 3219 |
|
| 3220 |
with gr.Accordion("4] Search Parameters", open=False):
|
| 3221 |
with gr.Column():
|
|
@@ -3263,14 +3263,15 @@ def main():
|
|
| 3263 |
with gr.Column():
|
| 3264 |
suggest_expansions_button = gr.Button("Suggest Expansion")
|
| 3265 |
expand_button = gr.Button("Expand the Report")
|
| 3266 |
-
|
| 3267 |
-
with gr.Accordion("Generate PDF", open=False, elem_classes="folder"):
|
| 3268 |
with gr.Column():
|
| 3269 |
query_name = gr.Textbox(label="Query name", placeholder="Enter query name...", lines=1)
|
| 3270 |
user_name = gr.Textbox(label="User name", placeholder="Enter your name...", lines=1)
|
| 3271 |
report_status = gr.Textbox(label="Report Status", interactive=False, lines=2, value="Click 'Generate Report' to create your PDF report.")
|
| 3272 |
report_file = gr.File(label="Download Report", visible=False, interactive=False, file_types=[".pdf"])
|
| 3273 |
generate_button = gr.Button("Generate Report")
|
|
|
|
|
|
|
| 3274 |
|
| 3275 |
with gr.Accordion("6] Extra Context (Crumbs, Existing Report & Log, Processed Queries)", open=False):
|
| 3276 |
existing_report = gr.Textbox(label="Existing Report (if any)", placeholder="Paste previously generated report here...", lines=4)
|
|
@@ -3287,10 +3288,10 @@ def main():
|
|
| 3287 |
send_button = gr.Button("Send")
|
| 3288 |
|
| 3289 |
with gr.Accordion("8] Backup / Restore Fields", open=False):
|
| 3290 |
-
backup_text = gr.Textbox(label="Backup JSON", placeholder="Backup output will appear here. You can also paste JSON here to load fields.", lines=6, interactive=True)
|
| 3291 |
with gr.Row():
|
| 3292 |
backup_button = gr.Button("Backup Fields")
|
| 3293 |
load_button = gr.Button("Load Fields")
|
|
|
|
| 3294 |
|
| 3295 |
with gr.Accordion("-- EXAMPLES --", open=False):
|
| 3296 |
example_dropdown = gr.Dropdown(label="Select an Example", choices=["Implications of the release of advanced Deep Research solutions", "AI regulation in finance", "AI top voices"])
|
|
|
|
| 3214 |
|
| 3215 |
with gr.Accordion("3] Q&A", open=False):
|
| 3216 |
with gr.Row():
|
|
|
|
| 3217 |
gen_followups = gr.Button("Generate Tailored Clarification Questions", scale=1)
|
| 3218 |
+
clarification_text = gr.Textbox(label="Clarification / Follow-Up Questions", placeholder="Tailored clarifying suggestions will appear here...", lines=6, scale = 4)
|
| 3219 |
|
| 3220 |
with gr.Accordion("4] Search Parameters", open=False):
|
| 3221 |
with gr.Column():
|
|
|
|
| 3263 |
with gr.Column():
|
| 3264 |
suggest_expansions_button = gr.Button("Suggest Expansion")
|
| 3265 |
expand_button = gr.Button("Expand the Report")
|
| 3266 |
+
with gr.Accordion("PDF generation", open=False, elem_classes="folder"):
|
|
|
|
| 3267 |
with gr.Column():
|
| 3268 |
query_name = gr.Textbox(label="Query name", placeholder="Enter query name...", lines=1)
|
| 3269 |
user_name = gr.Textbox(label="User name", placeholder="Enter your name...", lines=1)
|
| 3270 |
report_status = gr.Textbox(label="Report Status", interactive=False, lines=2, value="Click 'Generate Report' to create your PDF report.")
|
| 3271 |
report_file = gr.File(label="Download Report", visible=False, interactive=False, file_types=[".pdf"])
|
| 3272 |
generate_button = gr.Button("Generate Report")
|
| 3273 |
+
final_report = gr.HTML(label="Final Report", max_height = 800, min_height = 200, elem_id="final-report")
|
| 3274 |
+
|
| 3275 |
|
| 3276 |
with gr.Accordion("6] Extra Context (Crumbs, Existing Report & Log, Processed Queries)", open=False):
|
| 3277 |
existing_report = gr.Textbox(label="Existing Report (if any)", placeholder="Paste previously generated report here...", lines=4)
|
|
|
|
| 3288 |
send_button = gr.Button("Send")
|
| 3289 |
|
| 3290 |
with gr.Accordion("8] Backup / Restore Fields", open=False):
|
|
|
|
| 3291 |
with gr.Row():
|
| 3292 |
backup_button = gr.Button("Backup Fields")
|
| 3293 |
load_button = gr.Button("Load Fields")
|
| 3294 |
+
backup_text = gr.Textbox(label="Backup JSON", placeholder="Backup output will appear here. You can also paste JSON here to load fields.", lines=6, interactive=True)
|
| 3295 |
|
| 3296 |
with gr.Accordion("-- EXAMPLES --", open=False):
|
| 3297 |
example_dropdown = gr.Dropdown(label="Select an Example", choices=["Implications of the release of advanced Deep Research solutions", "AI regulation in finance", "AI top voices"])
|