Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,11 @@ api_key = os.getenv('WingTokenAll')
|
|
| 8 |
# Log in using the API key
|
| 9 |
login(api_key)
|
| 10 |
|
| 11 |
-
# Initialize the model without the use_auth_token argument
|
| 12 |
model = InferenceClientModel(
|
| 13 |
model='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 14 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
|
|
|
| 15 |
)
|
| 16 |
-
|
| 17 |
# Initialize the CodeAgent
|
| 18 |
agent = CodeAgent(
|
| 19 |
model=model,
|
|
|
|
| 8 |
# Log in using the API key
|
| 9 |
login(api_key)
|
| 10 |
|
|
|
|
| 11 |
model = InferenceClientModel(
|
| 12 |
model='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 13 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 14 |
+
provider='auto' # or specify a valid provider from the list
|
| 15 |
)
|
|
|
|
| 16 |
# Initialize the CodeAgent
|
| 17 |
agent = CodeAgent(
|
| 18 |
model=model,
|