crcdng commited on
Commit
0b573c7
·
1 Parent(s): 05206fa
Files changed (2) hide show
  1. Gradio_UI.py +9 -2
  2. app.py +0 -11
Gradio_UI.py CHANGED
@@ -282,15 +282,22 @@ class GradioUI:
282
  description_html=(
283
  """
284
  <center><p>
285
- Welcome to ChronoCore-77, the bleeding-edge time terminal jacked straight into the neon veins of Night City. Whether youre dodging corpos, chasing edgerunner gigs, or just trying to sync your implant clock, Ive got the local time locked and loaded. No glitches, no lag—just pure, precise chrono-data ripped straight from the grid. Stay sharp, choom. Time waits for no one.
286
  </p></center>
287
  """
288
  )
289
 
 
 
 
 
 
 
 
290
  with gr.Row():
291
  title=gr.HTML(title_html)
292
  with gr.Row():
293
- title=gr.HTML(description_html)
294
  stored_messages = gr.State([])
295
  file_uploads_log = gr.State([])
296
  chatbot = gr.Chatbot(
 
282
  description_html=(
283
  """
284
  <center><p>
285
+ Welcome to ChronoCore-77, the bleeding-edge time terminal jacked straight into the neon veins of Night City. Whether you're dodging corpos, chasing edgerunner gigs, or just trying to sync your implant clock, I've got the local time locked and loaded. No glitches, no lag—just pure, precise chrono-data ripped straight from the grid. Stay sharp, choom. Time waits for no one.
286
  </p></center>
287
  """
288
  )
289
 
290
+ with gr.Row():
291
+ timer = gr.Timer(1)
292
+ time_display = gr.Textbox(label="Time")
293
+ import datetime
294
+ from zoneinfo import ZoneInfo
295
+ timer.tick(lambda: round(time.time()), outputs=time_display)
296
+ # print(datetime.datetime.now(tz=ZoneInfo("Europe/Berlin")))
297
  with gr.Row():
298
  title=gr.HTML(title_html)
299
  with gr.Row():
300
+ description=gr.HTML(description_html)
301
  stored_messages = gr.State([])
302
  file_uploads_log = gr.State([])
303
  chatbot = gr.Chatbot(
app.py CHANGED
@@ -7,17 +7,6 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
10
- # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
- @tool
12
- def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
13
- #Keep this format for the description / args / args description but feel free to modify the tool
14
- """A tool that does nothing yet
15
- Args:
16
- arg1: the first argument
17
- arg2: the second argument
18
- """
19
- return "What magic will you build ?"
20
-
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
23
  """A tool that fetches the current local time in a specified timezone.
 
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
 
 
 
 
 
 
 
 
 
10
  @tool
11
  def get_current_time_in_timezone(timezone: str) -> str:
12
  """A tool that fetches the current local time in a specified timezone.