JiunYi commited on
Commit
da37431
1 Parent(s): d244f70

Adjust layout

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -92,25 +92,24 @@ with gr.Blocks(css=css, theme=gr.themes.Monochrome(neutral_hue="lime")) as demo:
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
 
115
  # esgqa
116
  with gr.Tab("ESG QA"):
 
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"):