Spaces:
Running
Running
Add token + print message
Browse files
app.py
CHANGED
@@ -46,17 +46,20 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
46 |
except Exception as e:
|
47 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
48 |
|
49 |
-
|
50 |
final_answer = FinalAnswerTool()
|
51 |
|
|
|
|
|
52 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
53 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
54 |
|
55 |
model = HfApiModel(
|
56 |
-
max_tokens=2096,
|
57 |
-
temperature=0.5,
|
58 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
59 |
-
custom_role_conversions=None,
|
|
|
60 |
)
|
61 |
|
62 |
|
|
|
46 |
except Exception as e:
|
47 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
48 |
|
49 |
+
token=os.getenv('HF_TOKEN')
|
50 |
final_answer = FinalAnswerTool()
|
51 |
|
52 |
+
print('We have progress!')
|
53 |
+
|
54 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
55 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
56 |
|
57 |
model = HfApiModel(
|
58 |
+
max_tokens=2096,
|
59 |
+
temperature=0.5,
|
60 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
61 |
+
custom_role_conversions=None,
|
62 |
+
token=token,
|
63 |
)
|
64 |
|
65 |
|