Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,9 +29,12 @@ def get_current_date_time() -> str:
|
|
| 29 |
class BasicAgent:
|
| 30 |
def __init__(self):
|
| 31 |
print("BasicAgent initialized.")
|
|
|
|
|
|
|
| 32 |
model = InferenceClientModel(
|
| 33 |
model_id="Qwen/Qwen2.5-72B-Instruct",
|
| 34 |
provider="hf-inference",
|
|
|
|
| 35 |
)
|
| 36 |
tools = [
|
| 37 |
DuckDuckGoSearchTool(),
|
|
|
|
| 29 |
class BasicAgent:
|
| 30 |
def __init__(self):
|
| 31 |
print("BasicAgent initialized.")
|
| 32 |
+
# HF_TOKEN is automatically available in HF Spaces
|
| 33 |
+
hf_token = os.getenv("HF_TOKEN")
|
| 34 |
model = InferenceClientModel(
|
| 35 |
model_id="Qwen/Qwen2.5-72B-Instruct",
|
| 36 |
provider="hf-inference",
|
| 37 |
+
token=hf_token,
|
| 38 |
)
|
| 39 |
tools = [
|
| 40 |
DuckDuckGoSearchTool(),
|