Spaces:
Running
Running
crcdng
commited on
Commit
·
e92f9e7
1
Parent(s):
43d34d5
razor
Browse files- Gradio_UI.py +13 -2
Gradio_UI.py
CHANGED
@@ -312,10 +312,20 @@ class GradioUI:
|
|
312 |
</p></center>
|
313 |
"""
|
314 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
|
|
|
|
|
316 |
with gr.Row():
|
317 |
timer = gr.Timer(1)
|
318 |
-
time_display = gr.Textbox(label="Time", elem_classes="glitch-
|
319 |
import time
|
320 |
timer.tick(lambda: get_current_time_in_timezone(time.tzname[0]), outputs=time_display)
|
321 |
with gr.Row():
|
@@ -333,6 +343,7 @@ class GradioUI:
|
|
333 |
),
|
334 |
resizeable=True,
|
335 |
scale=2,
|
|
|
336 |
)
|
337 |
# If an upload folder is provided, enable the upload feature
|
338 |
if self.file_upload_folder is not None:
|
@@ -348,7 +359,7 @@ class GradioUI:
|
|
348 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
349 |
tools_list = gr.Dropdown(self.agent_get_tools(), interactive=True, label="Tools", info="(display only)")
|
350 |
# tools_list.select(self.agent_get_tools, None, tools_list)
|
351 |
-
reset = gr.Button(value="Reset Agent",
|
352 |
reset.click(self.agent_reset, None, None)
|
353 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
354 |
text_input.submit(
|
|
|
312 |
</p></center>
|
313 |
"""
|
314 |
)
|
315 |
+
|
316 |
+
banner_html=(
|
317 |
+
"""
|
318 |
+
<div class="cyber-banner">
|
319 |
+
Banner
|
320 |
+
</div>
|
321 |
+
"""
|
322 |
+
)
|
323 |
|
324 |
+
with gr.Row():
|
325 |
+
title=gr.HTML(banner_html)
|
326 |
with gr.Row():
|
327 |
timer = gr.Timer(1)
|
328 |
+
time_display = gr.Textbox(label="Time", elem_classes="cyber-glitch-2",)
|
329 |
import time
|
330 |
timer.tick(lambda: get_current_time_in_timezone(time.tzname[0]), outputs=time_display)
|
331 |
with gr.Row():
|
|
|
343 |
),
|
344 |
resizeable=True,
|
345 |
scale=2,
|
346 |
+
elem_classes=".cyber-razor-top .cyber-razor-bottom"
|
347 |
)
|
348 |
# If an upload folder is provided, enable the upload feature
|
349 |
if self.file_upload_folder is not None:
|
|
|
359 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
360 |
tools_list = gr.Dropdown(self.agent_get_tools(), interactive=True, label="Tools", info="(display only)")
|
361 |
# tools_list.select(self.agent_get_tools, None, tools_list)
|
362 |
+
reset = gr.Button(value="Reset Agent", )
|
363 |
reset.click(self.agent_reset, None, None)
|
364 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
365 |
text_input.submit(
|