HayLahav commited on
Commit
d1217b2
·
verified ·
1 Parent(s): 7fdeaa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -355,8 +355,6 @@ def driving_situation_analyzer(video_path: str) -> dict:
355
  def predict_trajectory(video_path: str) -> dict:
356
  """Predicts vehicle trajectory based on the driving situation analysis.
357
 
358
- Uses YOLOv8-based analysis of detected lanes, objects, and road conditions.
359
-
360
  Args:
361
  video_path: Path to the input video.
362
 
@@ -532,7 +530,14 @@ def predict_trajectory(video_path: str) -> dict:
532
 
533
  @tool
534
  def get_current_time_in_timezone(timezone: str) -> str:
535
- """Fetches the current local time in a specified timezone."""
 
 
 
 
 
 
 
536
  try:
537
  tz = pytz.timezone(timezone)
538
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
 
355
  def predict_trajectory(video_path: str) -> dict:
356
  """Predicts vehicle trajectory based on the driving situation analysis.
357
 
 
 
358
  Args:
359
  video_path: Path to the input video.
360
 
 
530
 
531
  @tool
532
  def get_current_time_in_timezone(timezone: str) -> str:
533
+ """Fetches the current local time in a specified timezone.
534
+
535
+ Args:
536
+ timezone: A string representing a valid timezone (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo').
537
+
538
+ Returns:
539
+ A string showing the current local time in the specified timezone.
540
+ """
541
  try:
542
  tz = pytz.timezone(timezone)
543
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")