Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def
|
| 14 |
"""ChronoOraculum – A sci-fi fortune device that deciphers timelines
|
| 15 |
Args:
|
| 16 |
arg1: your galactic designation (e.g., "Captain Nova" or "XJ-42")
|
|
@@ -66,7 +66,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 66 |
|
| 67 |
agent = CodeAgent(
|
| 68 |
model=model,
|
| 69 |
-
tools=[
|
| 70 |
max_steps=6,
|
| 71 |
verbosity_level=1,
|
| 72 |
grammar=None,
|
|
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def fortune_device(arg1: str, arg2: int) -> str:
|
| 14 |
"""ChronoOraculum – A sci-fi fortune device that deciphers timelines
|
| 15 |
Args:
|
| 16 |
arg1: your galactic designation (e.g., "Captain Nova" or "XJ-42")
|
|
|
|
| 66 |
|
| 67 |
agent = CodeAgent(
|
| 68 |
model=model,
|
| 69 |
+
tools=[fortune_device,final_answer], ## add your tools here (don't remove final answer)
|
| 70 |
max_steps=6,
|
| 71 |
verbosity_level=1,
|
| 72 |
grammar=None,
|