Spaces:
Runtime error
Runtime error
this
Browse files
app.py
CHANGED
|
@@ -39,11 +39,9 @@ def responsenew(data):
|
|
| 39 |
- You can view your todo lists\n
|
| 40 |
- You can view your shared todo lists\n
|
| 41 |
- You can view your shared notes\n
|
| 42 |
-
- You can start a timer or a stopwatch\n
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
"""
|
| 46 |
-
exmpl = """Identify the user's intent from user's input message.\n
|
| 47 |
|
| 48 |
Return the intent as one-word string representing the user's intent, one of:
|
| 49 |
* if intent = purchasing coins return = "purchase_coins"
|
|
@@ -75,7 +73,10 @@ def responsenew(data):
|
|
| 75 |
* if intent = sharing a note return = "share_note"
|
| 76 |
* if intent = knowing your name or who you are or what is your name return = "cosmo_name"
|
| 77 |
|
|
|
|
|
|
|
| 78 |
"""
|
|
|
|
| 79 |
response = palm.chat(context = contxxt, examples = exmpl, messages=data)
|
| 80 |
intent = palm.chat(messages="")
|
| 81 |
print(intent)
|
|
|
|
| 39 |
- You can view your todo lists\n
|
| 40 |
- You can view your shared todo lists\n
|
| 41 |
- You can view your shared notes\n
|
| 42 |
+
- You can start a timer or a stopwatch\n\n
|
| 43 |
+
|
| 44 |
+
Identify the user's intent from user's input message.\n
|
|
|
|
|
|
|
| 45 |
|
| 46 |
Return the intent as one-word string representing the user's intent, one of:
|
| 47 |
* if intent = purchasing coins return = "purchase_coins"
|
|
|
|
| 73 |
* if intent = sharing a note return = "share_note"
|
| 74 |
* if intent = knowing your name or who you are or what is your name return = "cosmo_name"
|
| 75 |
|
| 76 |
+
|
| 77 |
+
|
| 78 |
"""
|
| 79 |
+
|
| 80 |
response = palm.chat(context = contxxt, examples = exmpl, messages=data)
|
| 81 |
intent = palm.chat(messages="")
|
| 82 |
print(intent)
|