Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 16 |
arg1: the first argument
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
-
|
| 20 |
# Generate image using the loaded tool
|
| 21 |
result = image_generation_tool(prompt=arg1)
|
| 22 |
|
|
|
|
| 16 |
arg1: the first argument
|
| 17 |
arg2: the second argument
|
| 18 |
"""
|
| 19 |
+
try:
|
| 20 |
# Generate image using the loaded tool
|
| 21 |
result = image_generation_tool(prompt=arg1)
|
| 22 |
|