Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ def tide_time(date: str) -> str:
|
|
32 |
results = duck_tool(query)
|
33 |
except Exception as e:
|
34 |
return f'An error occured while searching: {e}'
|
|
|
35 |
print(results)
|
36 |
if isinstance(results, list):
|
37 |
if len(results) > 0:
|
@@ -41,10 +42,10 @@ def tide_time(date: str) -> str:
|
|
41 |
elif isinstance(first_result, str):
|
42 |
return first_result
|
43 |
return "No tide info found for that date."
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
|
49 |
|
50 |
|
|
|
32 |
results = duck_tool(query)
|
33 |
except Exception as e:
|
34 |
return f'An error occured while searching: {e}'
|
35 |
+
|
36 |
print(results)
|
37 |
if isinstance(results, list):
|
38 |
if len(results) > 0:
|
|
|
42 |
elif isinstance(first_result, str):
|
43 |
return first_result
|
44 |
return "No tide info found for that date."
|
45 |
+
elif isinstance(results, str):
|
46 |
+
return results
|
47 |
+
else:
|
48 |
+
return "No tide info found for that date."
|
49 |
|
50 |
|
51 |
|