Spaces:
Sleeping
Sleeping
Update app.py
Browse filesTrying updating output of tool (as expected) from str, str to tuple
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 92 |
@tool
|
| 93 |
-
def summarize_and_answer_from_web(url: str, question:str) ->
|
| 94 |
'''
|
| 95 |
A tool which takes a pair of inputs, a website and a question, and finds all relevant information
|
| 96 |
about that question from the website, and return both the summary and the answer
|
|
|
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 92 |
@tool
|
| 93 |
+
def summarize_and_answer_from_web(url: str, question:str) -> tuple:
|
| 94 |
'''
|
| 95 |
A tool which takes a pair of inputs, a website and a question, and finds all relevant information
|
| 96 |
about that question from the website, and return both the summary and the answer
|