vechism commited on
Commit
4234a12
·
verified ·
1 Parent(s): 674565f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -12,11 +12,12 @@ from Gradio_UI import GradioUI
12
  @tool
13
  def mutante_unicorn(animal_name:str) -> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
- """A tool that generates a close-up photograph of a mutant unicorn based on an animal name (e.g. tiger, duck, snake, etc).
16
- This mutant unicorn has butterfly wings and is holding a small brightfull orb with its tiny paws, looking at the center
17
- of the orb with a concentrated gaze. The unicorn is in a clearing in the forest on a moonlit night.
 
18
  Args:
19
- animal_name: A string representing a name of any animal.
20
  """
21
  try:
22
  # Import tool from Hub
@@ -65,9 +66,9 @@ agent = CodeAgent(
65
  description=None,
66
  prompt_templates=prompt_templates
67
  )
68
- agent.run(
69
- '''This mutant unicorn has butterfly wings and is holding a small brightfull orb with its tiny paws, looking at the center
70
- of the orb with a concentrated gaze. The unicorn is in a clearing in the forest on a moonlit night.'''
71
- )
72
 
73
  GradioUI(agent).launch()
 
12
  @tool
13
  def mutante_unicorn(animal_name:str) -> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
+ """A tool that generates a close-up photograph of a mutant unicorn based on the provided animal name (e.g. tiger, duck, snake, etc).
16
+ The image features a mutant unicorn with characteristics of the specified animal, butterfly wings, and tiny paws holding a bright,
17
+ colorful orb. The unicorn is gazing with concentration at the center of the orb. The scene takes place in a
18
+ forest clearing illuminated by moonlight.
19
  Args:
20
+ animal_name: A string representing the name of an animal (e.g., "tiger", "duck", "snake") whose features will be incorporated into the mutant unicorn.
21
  """
22
  try:
23
  # Import tool from Hub
 
66
  description=None,
67
  prompt_templates=prompt_templates
68
  )
69
+ # agent.run(
70
+ # '''This mutant unicorn has butterfly wings and is holding a small brightfull orb with its tiny paws, looking at the center
71
+ # of the orb with a concentrated gaze. The unicorn is in a clearing in the forest on a moonlit night.'''
72
+ #)
73
 
74
  GradioUI(agent).launch()