JiunYi commited on
Commit
8302c75
1 Parent(s): da37431

Adjust layout

Browse files
Files changed (1) hide show
  1. app.py +18 -18
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
- 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"):
 
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"):