Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,12 +9,17 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 10 |
@tool
|
| 11 |
def text_to_image(timezone: str) -> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
@tool
|
| 14 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 15 |
'''A tool that fetches the current local time in a specified timezone.
|
| 16 |
Args:
|
| 17 |
-
timezone: a string representing a valid timezone (e.g, 'America/New_York)
|
| 18 |
'''
|
| 19 |
try:
|
| 20 |
tz = pytz.timezone(timezone)
|
|
|
|
| 9 |
|
| 10 |
@tool
|
| 11 |
def text_to_image(timezone: str) -> str:
|
| 12 |
+
'''A tool that creates a high quality image from the given text.
|
| 13 |
+
Args:
|
| 14 |
+
text: a string that needs to be converted to text (e.g., cool hedgehog)
|
| 15 |
+
'''
|
| 16 |
+
return
|
| 17 |
|
| 18 |
@tool
|
| 19 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 20 |
'''A tool that fetches the current local time in a specified timezone.
|
| 21 |
Args:
|
| 22 |
+
timezone: a string representing a valid timezone (e.g., 'America/New_York)
|
| 23 |
'''
|
| 24 |
try:
|
| 25 |
tz = pytz.timezone(timezone)
|