tu101 commited on
Commit
f560907
·
verified ·
1 Parent(s): 8bca4e4
Files changed (1) hide show
  1. tools.py +3 -3
tools.py CHANGED
@@ -16,7 +16,7 @@ from typing import Optional, Tuple
16
 
17
 
18
 
19
- def extract_text(img_path: str) -> str:
20
  """
21
  Extract text from an image file using a multimodal model.
22
 
@@ -94,12 +94,12 @@ def calculate_cargo_travel_time(
94
  cruising_speed_kmh: Optional[float] = 750.0, # Average speed for cargo planes
95
  ) -> float:
96
  """
97
- Calculate the travel time for a cargo plane between two points on Earth using great-circle distance.
98
 
99
  Args:
100
  origin_coords: Tuple of (latitude, longitude) for the starting point
101
  destination_coords: Tuple of (latitude, longitude) for the destination
102
- cruising_speed_kmh: Optional cruising speed in km/h (defaults to 750 km/h for typical cargo planes)
103
 
104
  Returns:
105
  float: The estimated travel time in hours
 
16
 
17
 
18
 
19
+ def extract_image_text(img_path: str) -> str:
20
  """
21
  Extract text from an image file using a multimodal model.
22
 
 
94
  cruising_speed_kmh: Optional[float] = 750.0, # Average speed for cargo planes
95
  ) -> float:
96
  """
97
+ Calculate the travel time for an object, usually a cargo plane, between two points on Earth using great-circle distance.
98
 
99
  Args:
100
  origin_coords: Tuple of (latitude, longitude) for the starting point
101
  destination_coords: Tuple of (latitude, longitude) for the destination
102
+ cruising_speed_kmh: Optional cruising speed in km/h (defaults to 750 km/h for typical cargo planes). Adjustable depending on object.
103
 
104
  Returns:
105
  float: The estimated travel time in hours