Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,13 +24,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 24 |
|
| 25 |
|
| 26 |
final_answer = get_current_time_in_timezone()
|
| 27 |
-
|
|
|
|
| 28 |
max_tokens=2096,
|
| 29 |
temperature=0.01,
|
| 30 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 31 |
-
custom_role_conversions=None
|
| 32 |
)
|
| 33 |
-
|
| 34 |
# Load system prompt from prompt.yaml file
|
| 35 |
with open("prompts.yaml", 'r') as stream:
|
| 36 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
final_answer = get_current_time_in_timezone()
|
| 27 |
+
|
| 28 |
+
model = HfApiModel(
|
| 29 |
max_tokens=2096,
|
| 30 |
temperature=0.01,
|
| 31 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 32 |
+
custom_role_conversions=None
|
| 33 |
)
|
|
|
|
| 34 |
# Load system prompt from prompt.yaml file
|
| 35 |
with open("prompts.yaml", 'r') as stream:
|
| 36 |
prompt_templates = yaml.safe_load(stream)
|