Pijush2023 commited on
Commit
4c28a14
·
verified ·
1 Parent(s): 5024e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -158,6 +158,16 @@ def bot(history, choice):
158
  map_html = generate_map(addresses)
159
  yield history, map_html
160
 
 
 
 
 
 
 
 
 
 
 
161
  def add_message(history, message):
162
  history.append((message, None))
163
  return history, gr.Textbox(value="", interactive=True, placeholder="Enter message or upload file...", show_label=False)
 
158
  map_html = generate_map(addresses)
159
  yield history, map_html
160
 
161
+ from datetime import datetime
162
+
163
+ def get_current_time_and_date():
164
+ now = datetime.now()
165
+ return now.strftime("%Y-%m-%d %H:%M:%S")
166
+
167
+ # Example usage
168
+ current_time_and_date = get_current_time_and_date()
169
+
170
+
171
  def add_message(history, message):
172
  history.append((message, None))
173
  return history, gr.Textbox(value="", interactive=True, placeholder="Enter message or upload file...", show_label=False)