Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
-
from huggingface_hub import notebook_login
|
| 37 |
-
notebook_login()
|
| 38 |
|
| 39 |
final_answer = FinalAnswerTool()
|
| 40 |
|
|
@@ -44,7 +42,7 @@ final_answer = FinalAnswerTool()
|
|
| 44 |
model = HfApiModel(
|
| 45 |
max_tokens=2096,
|
| 46 |
temperature=0.5,
|
| 47 |
-
model_id='
|
| 48 |
custom_role_conversions=None,
|
| 49 |
)
|
| 50 |
|
|
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
|
|
|
|
|
|
| 36 |
|
| 37 |
final_answer = FinalAnswerTool()
|
| 38 |
|
|
|
|
| 42 |
model = HfApiModel(
|
| 43 |
max_tokens=2096,
|
| 44 |
temperature=0.5,
|
| 45 |
+
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud' ,# it is possible that this model may be overloaded
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|