Spaces:
Runtime error
Runtime error
Adjust layout
Browse files
app.py
CHANGED
@@ -91,25 +91,25 @@ with gr.Blocks(css=css, theme=gr.themes.Monochrome(neutral_hue="lime")) as demo:
|
|
91 |
)
|
92 |
esgsumm_report_gen_button = gr.Button("Generate Report")
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
)
|
104 |
-
esgsumm_report_output = gr.Textbox(
|
105 |
-
label="Report Output",
|
106 |
-
interactive=False,
|
107 |
-
scale=4,
|
108 |
-
)
|
109 |
-
esgsumm_download_btn = gr.Button("Export Summary")
|
110 |
-
esgsumm_download_file = gr.File(
|
111 |
-
label="Download Summary Text", file_types=[".txt"]
|
112 |
-
)
|
113 |
|
114 |
# esgqa
|
115 |
with gr.Tab("ESG QA"):
|
|
|
91 |
)
|
92 |
esgsumm_report_gen_button = gr.Button("Generate Report")
|
93 |
|
94 |
+
with gr.Column():
|
95 |
+
gr.Markdown("## Generate ESG Summarization", elem_id="center")
|
96 |
+
with gr.Accordion("Revise Your Prompt", open=False):
|
97 |
+
esgsumm_checkbox_replace = gr.Checkbox(label="Replace with new prompt")
|
98 |
+
esgsumm_prompt_tmpl = gr.Textbox(
|
99 |
+
label="希望用於本次問答的prompt",
|
100 |
+
info="必須使用到的變數:{filtered_data}、{query}",
|
101 |
+
value="",
|
102 |
+
interactive=True,
|
103 |
+
)
|
104 |
+
esgsumm_report_output = gr.Textbox(
|
105 |
+
label="Report Output",
|
106 |
+
interactive=False,
|
107 |
+
scale=4,
|
108 |
+
)
|
109 |
+
esgsumm_download_btn = gr.Button("Export Summary")
|
110 |
+
esgsumm_download_file = gr.File(
|
111 |
+
label="Download Summary Text", file_types=[".txt"]
|
112 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
# esgqa
|
115 |
with gr.Tab("ESG QA"):
|