Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,11 +29,11 @@ def get_current_date_time() -> str:
|
|
| 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="
|
| 36 |
-
provider="hf-inference",
|
| 37 |
token=hf_token,
|
| 38 |
)
|
| 39 |
tools = [
|
|
|
|
| 29 |
class BasicAgent:
|
| 30 |
def __init__(self):
|
| 31 |
print("BasicAgent initialized.")
|
|
|
|
| 32 |
hf_token = os.getenv("HF_TOKEN")
|
| 33 |
+
# Use InferenceClientModel without specifying provider
|
| 34 |
+
# so HF router picks the best available provider automatically
|
| 35 |
model = InferenceClientModel(
|
| 36 |
+
model_id="meta-llama/Llama-3.3-70B-Instruct",
|
|
|
|
| 37 |
token=hf_token,
|
| 38 |
)
|
| 39 |
tools = [
|