Spaces:
Paused
Paused
debug
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ guest_info_tool = Tool(
|
|
| 91 |
search_tool = DuckDuckGoSearchRun()
|
| 92 |
|
| 93 |
def get_weather_info(location: str) -> str:
|
| 94 |
-
|
| 95 |
# Dummy weather data
|
| 96 |
weather_conditions = [
|
| 97 |
{"condition": "Rainy", "temp_c": 15},
|
|
@@ -111,7 +111,7 @@ weather_info_tool = Tool(
|
|
| 111 |
|
| 112 |
|
| 113 |
def get_hub_stats(author: str) -> str:
|
| 114 |
-
|
| 115 |
try:
|
| 116 |
# List models from the specified author, sorted by downloads
|
| 117 |
models = list(list_models(author=author, sort="downloads", direction=-1, limit=1))
|
|
|
|
| 91 |
search_tool = DuckDuckGoSearchRun()
|
| 92 |
|
| 93 |
def get_weather_info(location: str) -> str:
|
| 94 |
+
Fetches dummy weather information for a given location.
|
| 95 |
# Dummy weather data
|
| 96 |
weather_conditions = [
|
| 97 |
{"condition": "Rainy", "temp_c": 15},
|
|
|
|
| 111 |
|
| 112 |
|
| 113 |
def get_hub_stats(author: str) -> str:
|
| 114 |
+
Fetches the most downloaded model from a specific author on the Hugging Face Hub.
|
| 115 |
try:
|
| 116 |
# List models from the specified author, sorted by downloads
|
| 117 |
models = list(list_models(author=author, sort="downloads", direction=-1, limit=1))
|