Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,18 +169,15 @@ with gr.Blocks(css=css) as demo:
|
|
| 169 |
context = gr.Textbox(lines=11, label="Last Context")
|
| 170 |
msg = gr.Textbox(label="", placeholder="Введите сообщение")
|
| 171 |
with gr.Row():
|
| 172 |
-
with gr.Column(scale=2):
|
| 173 |
submit_button = gr.Button("Отправить")
|
| 174 |
-
with gr.Column(scale=1):
|
| 175 |
-
clear = gr.ClearButton([msg, chatbot, context], value="Новый чат")
|
| 176 |
-
|
| 177 |
|
| 178 |
with gr.Row():
|
| 179 |
radio = gr.Radio(label="Рейтинг відповіді", choices=["Нема", "1", "2", "3", "4", "5"], value="Нема")
|
| 180 |
comment = gr.Textbox(lines=2, label = "Коментар")
|
| 181 |
with gr.Row():
|
| 182 |
-
b2 = gr.ClearButton([radio, comment], value="Прокоментувати чат")
|
| 183 |
clear = gr.ClearButton([msg, chatbot, context, radio, comment], value="Новый чат")
|
|
|
|
|
|
|
| 184 |
|
| 185 |
clear.click(clear_f)
|
| 186 |
submit_button.click(respond, [msg, chatbot], [msg, chatbot, context])
|
|
|
|
| 169 |
context = gr.Textbox(lines=11, label="Last Context")
|
| 170 |
msg = gr.Textbox(label="", placeholder="Введите сообщение")
|
| 171 |
with gr.Row():
|
|
|
|
| 172 |
submit_button = gr.Button("Отправить")
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
with gr.Row():
|
| 175 |
radio = gr.Radio(label="Рейтинг відповіді", choices=["Нема", "1", "2", "3", "4", "5"], value="Нема")
|
| 176 |
comment = gr.Textbox(lines=2, label = "Коментар")
|
| 177 |
with gr.Row():
|
|
|
|
| 178 |
clear = gr.ClearButton([msg, chatbot, context, radio, comment], value="Новый чат")
|
| 179 |
+
b2 = gr.ClearButton([radio, comment], value="Прокоментувати чат")
|
| 180 |
+
|
| 181 |
|
| 182 |
clear.click(clear_f)
|
| 183 |
submit_button.click(respond, [msg, chatbot], [msg, chatbot, context])
|