Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,20 +7,3 @@ api_key = os.getenv('WingTokenAll')
|
|
| 7 |
|
| 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,
|
| 19 |
-
tools=[], # Skip additional tools to speed up
|
| 20 |
-
max_steps=20,
|
| 21 |
-
verbosity_level=1,
|
| 22 |
-
)
|
| 23 |
-
|
| 24 |
-
# Launch the Gradio UI
|
| 25 |
-
if __name__ == "__main__":
|
| 26 |
-
GradioUI(agent).launch()
|
|
|
|
| 7 |
|
| 8 |
# Log in using the API key
|
| 9 |
login(api_key)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|