Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,9 @@ class CalendarWrappedAPI:
|
|
| 92 |
role="system",
|
| 93 |
content="""
|
| 94 |
You are a GOOGLE CALENDAR wrapped generator. Based on the user's calendar data,
|
| 95 |
-
analyze the events and create a personalized "Calendar Wrapped" summary.
|
|
|
|
|
|
|
| 96 |
Be extremely creative and funny about it. Include interesting statistics and patterns and roasts.
|
| 97 |
"""
|
| 98 |
)
|
|
@@ -108,7 +110,7 @@ class CalendarWrappedAPI:
|
|
| 108 |
).as_agent()
|
| 109 |
|
| 110 |
try:
|
| 111 |
-
response = agent.chat(f"Create a Calendar Wrapped summary for user with entity_id: {entity_id}")
|
| 112 |
return response
|
| 113 |
except Exception as e:
|
| 114 |
return f"Error generating wrapped: {str(e)}"
|
|
|
|
| 92 |
role="system",
|
| 93 |
content="""
|
| 94 |
You are a GOOGLE CALENDAR wrapped generator. Based on the user's calendar data,
|
| 95 |
+
analyze the events and create a personalized "Calendar Wrapped" summary.
|
| 96 |
+
Find actual data about the user using Google Calendar Actions at your disposal and then generate the wrapped
|
| 97 |
+
Use the tool and actions available to you, you have to.
|
| 98 |
Be extremely creative and funny about it. Include interesting statistics and patterns and roasts.
|
| 99 |
"""
|
| 100 |
)
|
|
|
|
| 110 |
).as_agent()
|
| 111 |
|
| 112 |
try:
|
| 113 |
+
response = agent.chat(f"Create a Calendar Wrapped summary for user with entity_id: {entity_id}. Find actual data about the user using Google Calendar Actions at your disposal and then generate the wrapped.")
|
| 114 |
return response
|
| 115 |
except Exception as e:
|
| 116 |
return f"Error generating wrapped: {str(e)}"
|