Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
26 |
Args:
|
27 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
28 |
"""
|
|
|
29 |
try:
|
30 |
# Create timezone object
|
31 |
tz = pytz.timezone(timezone)
|
@@ -144,6 +145,7 @@ agent = CodeAgent(
|
|
144 |
prompt_templates=prompt_templates,
|
145 |
additional_authorized_imports=['datetime']
|
146 |
)
|
|
|
|
|
147 |
# Change to your username and repo name
|
148 |
-
|
149 |
-
GradioUI(agent).launch()
|
|
|
26 |
Args:
|
27 |
timezone: A string representing a valid timezone (e.g., 'America/New_York').
|
28 |
"""
|
29 |
+
|
30 |
try:
|
31 |
# Create timezone object
|
32 |
tz = pytz.timezone(timezone)
|
|
|
145 |
prompt_templates=prompt_templates,
|
146 |
additional_authorized_imports=['datetime']
|
147 |
)
|
148 |
+
GradioUI(agent).launch()
|
149 |
+
|
150 |
# Change to your username and repo name
|
151 |
+
agent.push_to_hub('jamesbright/party_organiser')
|
|