Update app.py
Browse files
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='
|
162 |
with gr.Row():
|
163 |
like_button = gr.Button("👍")
|
164 |
dislike_button = gr.Button("👎")
|
165 |
-
improvement_input = gr.Textbox(label='
|
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():
|