jpuri commited on
Commit
ab0c6b6
·
1 Parent(s): 8b94f11

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -1,21 +1,6 @@
1
  from smolagents import GradioUI, CodeAgent, InferenceClientModel
2
- import numpy as np
3
- import time
4
- import datetime
5
 
6
- agent = CodeAgent(tools=[], model=InferenceClientModel(), additional_authorized_imports=['datetime'])
7
-
8
- agent.run(
9
- """
10
- Alfred needs to prepare for the party. Here are the tasks:
11
- 1. Prepare the drinks - 30 minutes
12
- 2. Decorate the mansion - 60 minutes
13
- 3. Set up the menu - 45 minutes
14
- 4. Prepare the music and playlist - 45 minutes
15
-
16
- If we start right now, at what time will the party be ready?
17
- """
18
- )
19
 
20
  if __name__ == "__main__":
21
  GradioUI(agent).launch()
 
1
  from smolagents import GradioUI, CodeAgent, InferenceClientModel
 
 
 
2
 
3
+ agent = CodeAgent(tools=[], model=InferenceClientModel())
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  if __name__ == "__main__":
6
  GradioUI(agent).launch()