Spaces:
Sleeping
Sleeping
crcdng
commited on
Commit
·
f5da30e
1
Parent(s):
eda9129
css
Browse files- Gradio_UI.py +3 -3
Gradio_UI.py
CHANGED
|
@@ -325,7 +325,7 @@ class GradioUI:
|
|
| 325 |
title=gr.HTML(banner_html)
|
| 326 |
with gr.Row():
|
| 327 |
timer = gr.Timer(1)
|
| 328 |
-
time_display = gr.Textbox(label="Time",
|
| 329 |
import time
|
| 330 |
timer.tick(lambda: get_current_time_in_timezone(time.tzname[0]), outputs=time_display)
|
| 331 |
with gr.Row():
|
|
@@ -353,14 +353,14 @@ class GradioUI:
|
|
| 353 |
[upload_file, file_uploads_log],
|
| 354 |
[upload_status, file_uploads_log],
|
| 355 |
)
|
| 356 |
-
with gr.Row():
|
| 357 |
steps_input = gr.Slider(1, 12, value=4, step=1, label="Max. Number of Steps")
|
| 358 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
| 359 |
tools_list = gr.Dropdown(self.agent_get_tools(), interactive=True, label="Tools", info="(display only)")
|
| 360 |
# tools_list.select(self.agent_get_tools, None, tools_list)
|
| 361 |
reset = gr.Button(value="Reset Agent", )
|
| 362 |
reset.click(self.agent_reset, None, None)
|
| 363 |
-
text_input = gr.Textbox(lines=1, label="Chat Message", elem_classes="cyber-
|
| 364 |
)
|
| 365 |
text_input.submit(
|
| 366 |
self.log_user_message,
|
|
|
|
| 325 |
title=gr.HTML(banner_html)
|
| 326 |
with gr.Row():
|
| 327 |
timer = gr.Timer(1)
|
| 328 |
+
time_display = gr.Textbox(label="Time",)
|
| 329 |
import time
|
| 330 |
timer.tick(lambda: get_current_time_in_timezone(time.tzname[0]), outputs=time_display)
|
| 331 |
with gr.Row():
|
|
|
|
| 353 |
[upload_file, file_uploads_log],
|
| 354 |
[upload_status, file_uploads_log],
|
| 355 |
)
|
| 356 |
+
with gr.Row(equal_height=True):
|
| 357 |
steps_input = gr.Slider(1, 12, value=4, step=1, label="Max. Number of Steps")
|
| 358 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
| 359 |
tools_list = gr.Dropdown(self.agent_get_tools(), interactive=True, label="Tools", info="(display only)")
|
| 360 |
# tools_list.select(self.agent_get_tools, None, tools_list)
|
| 361 |
reset = gr.Button(value="Reset Agent", )
|
| 362 |
reset.click(self.agent_reset, None, None)
|
| 363 |
+
text_input = gr.Textbox(lines=1, label="Chat Message", elem_classes="cyber-glitch-2",
|
| 364 |
)
|
| 365 |
text_input.submit(
|
| 366 |
self.log_user_message,
|