DeepLearning101 commited on
Commit
463a956
·
verified ·
1 Parent(s): 7aa80c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -152,17 +152,17 @@ with gr.Blocks() as iface:
152
  gr.HTML(SUBTITLE)
153
  gr.HTML(LINKS)
154
  with gr.Row():
155
- user_input = gr.Textbox(label='歡迎問我關於「高熵合金」(High-entropy alloys) 的各種疑難雜症', lines=2, placeholder="在此輸入問題...")
156
- submit_button = gr.Button("提交")
157
 
158
  gr.Examples(examples=examples, inputs=user_input)
159
 
160
  with gr.Row():
161
- response_output = gr.Textbox(label='模型回應', interactive=False)
162
  with gr.Row():
163
  like_button = gr.Button("👍")
164
  dislike_button = gr.Button("👎")
165
- improvement_input = gr.Textbox(label='改進建議', placeholder='請輸入如何改進模型回應的建議...')
166
  with gr.Row():
167
  feedback_output = gr.Textbox(label='反饋結果', interactive=False)
168
  with gr.Row():
 
152
  gr.HTML(SUBTITLE)
153
  gr.HTML(LINKS)
154
  with gr.Row():
155
+ user_input = gr.Textbox(label='歡迎問我關於「高熵合金」(High-entropy alloys) 的各種疑難雜症', lines=2, placeholder="在此輸入問題,然後按下右邊的送出...")
156
+ submit_button = gr.Button("送出")
157
 
158
  gr.Examples(examples=examples, inputs=user_input)
159
 
160
  with gr.Row():
161
+ response_output = gr.Textbox(label='底下是大型語言模型的回應', interactive=False)
162
  with gr.Row():
163
  like_button = gr.Button("👍")
164
  dislike_button = gr.Button("👎")
165
+ improvement_input = gr.Textbox(label='請先輸入改進建議再按下左手邊的贊或倒贊', placeholder='請輸入如何改進模型回應的建議,如果不輸入可以直接忽略')
166
  with gr.Row():
167
  feedback_output = gr.Textbox(label='反饋結果', interactive=False)
168
  with gr.Row():