Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,20 +38,20 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 38 |
|
| 39 |
|
| 40 |
final_answer = FinalAnswerTool()
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
#api_key=os.getenv('HFAPIKEY'),
|
| 47 |
-
#)
|
| 48 |
-
|
| 49 |
-
model = OpenAIServerModel(
|
| 50 |
-
model_id="openai/gpt-4o",
|
| 51 |
-
api_base="", # Leave this blank to query OpenAI servers.
|
| 52 |
-
api_key=os.getenv('OPENAIKEY'), # Switch to the API key for the server you're targeting.
|
| 53 |
)
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
final_answer = FinalAnswerTool()
|
| 41 |
+
model = HfApiModel(
|
| 42 |
+
max_tokens=2096,
|
| 43 |
+
temperature=0.5,
|
| 44 |
+
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/'',# it is possible that this model may be overloaded
|
| 45 |
+
custom_role_conversions=None,
|
| 46 |
#api_key=os.getenv('HFAPIKEY'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
)
|
| 48 |
|
| 49 |
+
#model = OpenAIServerModel(
|
| 50 |
+
# model_id="openai/gpt-4o",
|
| 51 |
+
# api_base="", # Leave this blank to query OpenAI servers.
|
| 52 |
+
# api_key=os.getenv('OPENAIKEY'), # Switch to the API key for the server you're targeting.
|
| 53 |
+
#)
|
| 54 |
+
|
| 55 |
|
| 56 |
|
| 57 |
|