Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 31 |
try:
|
| 32 |
# Create timezone object
|
| 33 |
tz = pytz.timezone(timezone)
|
| 34 |
-
# Get current time in
|
| 35 |
-
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 36 |
-
return f"The current local time in {timezone} is: {local_time}"
|
| 37 |
except Exception as e:
|
| 38 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 39 |
|
|
@@ -42,7 +40,7 @@ final_answer = FinalAnswerTool()
|
|
| 42 |
model = HfApiModel(
|
| 43 |
max_tokens=2096,
|
| 44 |
temperature=0.5,
|
| 45 |
-
model_id='
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|
|
|
|
| 31 |
try:
|
| 32 |
# Create timezone object
|
| 33 |
tz = pytz.timezone(timezone)
|
| 34 |
+
# Get current time rent local time in {timezone} is: {local_time}"
|
|
|
|
|
|
|
| 35 |
except Exception as e:
|
| 36 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 37 |
|
|
|
|
| 40 |
model = HfApiModel(
|
| 41 |
max_tokens=2096,
|
| 42 |
temperature=0.5,
|
| 43 |
+
model_id='deepseek-ai/deepseek-coder-1.3b-instruct',# it is possible that this model may be overloaded
|
| 44 |
custom_role_conversions=None,
|
| 45 |
)
|
| 46 |
|