lezaf commited on
Commit
5d4f8e9
·
1 Parent(s): 7bb9d22

Remove datetime from app

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,7 +8,6 @@ import gradio as gr
8
  import requests
9
  import inspect
10
  import pandas as pd
11
- import datetime
12
  from agent import build_agent
13
  from langchain_core.messages import HumanMessage
14
  from langfuse.langchain import CallbackHandler
@@ -178,7 +177,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
178
 
179
  # Print the answer for debugging
180
  # print the timestamp
181
- print(f"[{datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")}] Task ID: {task_id}, Submitted Answer: {submitted_answer[:50]}")
182
  except Exception as e:
183
  print(f"Error running agent on task {task_id}: {e}")
184
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
 
8
  import requests
9
  import inspect
10
  import pandas as pd
 
11
  from agent import build_agent
12
  from langchain_core.messages import HumanMessage
13
  from langfuse.langchain import CallbackHandler
 
177
 
178
  # Print the answer for debugging
179
  # print the timestamp
180
+ print(f"Task ID: {task_id}, Submitted Answer: {submitted_answer[:50]}")
181
  except Exception as e:
182
  print(f"Error running agent on task {task_id}: {e}")
183
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})