Spaces:
Running
Running
crcdng
commited on
Commit
·
9c536c6
1
Parent(s):
0713d93
css
Browse files- Gradio_UI.py +2 -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():
|
@@ -360,8 +360,7 @@ class GradioUI:
|
|
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,
|
367 |
[text_input, file_uploads_log],
|
|
|
325 |
title=gr.HTML(banner_html)
|
326 |
with gr.Row():
|
327 |
timer = gr.Timer(1)
|
328 |
+
time_display = gr.Textbox(label="Time", min_width=300)
|
329 |
import time
|
330 |
timer.tick(lambda: get_current_time_in_timezone(time.tzname[0]), outputs=time_display)
|
331 |
with gr.Row():
|
|
|
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", max_length=1000)
|
|
|
364 |
text_input.submit(
|
365 |
self.log_user_message,
|
366 |
[text_input, file_uploads_log],
|