Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def get_weather(city: str) -> str:
|
|
27 |
Args:
|
28 |
city: The name of the city (e.g., 'New York').
|
29 |
"""
|
30 |
-
api_key = "
|
31 |
url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}&units=metric"
|
32 |
|
33 |
try:
|
@@ -76,7 +76,7 @@ final_answer = FinalAnswerTool()
|
|
76 |
# Initialize Model
|
77 |
model = HfApiModel(
|
78 |
max_tokens=2096,
|
79 |
-
temperature=0.
|
80 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
81 |
custom_role_conversions=None,
|
82 |
)
|
|
|
27 |
Args:
|
28 |
city: The name of the city (e.g., 'New York').
|
29 |
"""
|
30 |
+
api_key = "ac662b5c2463cfa522e1acd2d4cf5a81" # Replace with your OpenWeather API key
|
31 |
url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}&units=metric"
|
32 |
|
33 |
try:
|
|
|
76 |
# Initialize Model
|
77 |
model = HfApiModel(
|
78 |
max_tokens=2096,
|
79 |
+
temperature=0.7,
|
80 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
81 |
custom_role_conversions=None,
|
82 |
)
|