david-thrower commited on
Commit
4e4d0f8
·
verified ·
1 Parent(s): ab1c97c

Update app.py

Browse files

Code formatting

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from smolagents import (
2
  TransformersModel,
3
  # load_tool,
@@ -14,15 +15,19 @@ from smolagents import (
14
  GradioUI
15
  )
16
 
 
17
  MODEL_NAME = "Qwen/Qwen3-0.6B"
18
 
19
- model = TransformersModel(
 
 
20
  model_id=MODEL_NAME,
21
  max_new_tokens=4096,
22
  temperature=0.6,
23
  top_p=0.95,
24
  repetition_penalty=1.1)
25
 
 
26
  agent = CodeAgent(
27
  tools=[ DuckDuckGoSearchTool(),
28
  # ApiWebSearchTool(),
@@ -37,4 +42,5 @@ agent = CodeAgent(
37
  model=model,
38
  )
39
 
 
40
  GradioUI(agent).launch()
 
1
+
2
  from smolagents import (
3
  TransformersModel,
4
  # load_tool,
 
15
  GradioUI
16
  )
17
 
18
+
19
  MODEL_NAME = "Qwen/Qwen3-0.6B"
20
 
21
+
22
+ model =\
23
+ TransformersModel(
24
  model_id=MODEL_NAME,
25
  max_new_tokens=4096,
26
  temperature=0.6,
27
  top_p=0.95,
28
  repetition_penalty=1.1)
29
 
30
+
31
  agent = CodeAgent(
32
  tools=[ DuckDuckGoSearchTool(),
33
  # ApiWebSearchTool(),
 
42
  model=model,
43
  )
44
 
45
+
46
  GradioUI(agent).launch()