Spaces:
Running
Running
crcdng
commited on
Commit
·
c9d6b49
1
Parent(s):
c5a60ab
steps
Browse files- Gradio_UI.py +4 -1
- README.md +3 -1
Gradio_UI.py
CHANGED
@@ -320,6 +320,9 @@ class GradioUI:
|
|
320 |
def agent_get_tools(self):
|
321 |
return self.agent.tools
|
322 |
|
|
|
|
|
|
|
323 |
def agent_reset(self):
|
324 |
self.agent.memory.reset()
|
325 |
self.agent.monitor.reset()
|
@@ -414,7 +417,7 @@ class GradioUI:
|
|
414 |
)
|
415 |
with gr.Row(equal_height=True):
|
416 |
steps_input = gr.Slider(
|
417 |
-
1, 12, value=
|
418 |
)
|
419 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
420 |
tools_list = gr.Dropdown(
|
|
|
320 |
def agent_get_tools(self):
|
321 |
return self.agent.tools
|
322 |
|
323 |
+
def agent_get_steps(self):
|
324 |
+
return self.agent.max_steps
|
325 |
+
|
326 |
def agent_reset(self):
|
327 |
self.agent.memory.reset()
|
328 |
self.agent.monitor.reset()
|
|
|
417 |
)
|
418 |
with gr.Row(equal_height=True):
|
419 |
steps_input = gr.Slider(
|
420 |
+
1, 12, value=self.agent_get_steps(), step=1, label="Max. Number of Steps"
|
421 |
)
|
422 |
steps_input.change(self.agent_set_steps, steps_input, None)
|
423 |
tools_list = gr.Dropdown(
|
README.md
CHANGED
@@ -18,7 +18,9 @@ tags:
|
|
18 |
|
19 |
# Your Cyberpunk Local Time Terminal
|
20 |
|
21 |
-
derived from: First Agent Template
|
|
|
22 |
uses the [cyber theme](https://huggingface.co/spaces/crcdng/cyber)
|
23 |
and [cyberpunk.css](https://www.cssscript.com/demo/cyberpunk-2077/) Copyright (c) 2025 github/alddesign (MIT License)
|
|
|
24 |
[3D model](https://rigmodels.com/model.php?view=Retro_Sci-Fi_Holocomputer-3d-model__eb9917b8e8904bc48420216db09eef46) free license
|
|
|
18 |
|
19 |
# Your Cyberpunk Local Time Terminal
|
20 |
|
21 |
+
derived from: First Agent Template
|
22 |
+
|
23 |
uses the [cyber theme](https://huggingface.co/spaces/crcdng/cyber)
|
24 |
and [cyberpunk.css](https://www.cssscript.com/demo/cyberpunk-2077/) Copyright (c) 2025 github/alddesign (MIT License)
|
25 |
+
|
26 |
[3D model](https://rigmodels.com/model.php?view=Retro_Sci-Fi_Holocomputer-3d-model__eb9917b8e8904bc48420216db09eef46) free license
|