Spaces:
Sleeping
Sleeping
Update other_function.py
Browse files- other_function.py +4 -4
other_function.py
CHANGED
|
@@ -225,8 +225,8 @@ def booktask(data):
|
|
| 225 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
| 226 |
model="tiiuae/falcon-11b",
|
| 227 |
messages=[
|
| 228 |
-
{"role": "system", "content": "You are
|
| 229 |
-
{"role": "user", "content": f"My
|
| 230 |
],
|
| 231 |
stream=True,
|
| 232 |
):
|
|
@@ -241,8 +241,8 @@ def return_bookdata(querry,data):
|
|
| 241 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
| 242 |
model="tiiuae/falcon-11b",
|
| 243 |
messages=[
|
| 244 |
-
{"role": "system", "content": "You are
|
| 245 |
-
{"role": "user", "content": f"My
|
| 246 |
],
|
| 247 |
stream=True,
|
| 248 |
):
|
|
|
|
| 225 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
| 226 |
model="tiiuae/falcon-11b",
|
| 227 |
messages=[
|
| 228 |
+
{"role": "system", "content": "You are an assistant."},
|
| 229 |
+
{"role": "user", "content": f"My finance plan data is {data}.Provide the data in points."},
|
| 230 |
],
|
| 231 |
stream=True,
|
| 232 |
):
|
|
|
|
| 241 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
| 242 |
model="tiiuae/falcon-11b",
|
| 243 |
messages=[
|
| 244 |
+
{"role": "system", "content": "You are an assistant."},
|
| 245 |
+
{"role": "user", "content": f"My finance plan data is {data}.do what user is telling. user:{querry}.Give the finance format of finance data in points"},
|
| 246 |
],
|
| 247 |
stream=True,
|
| 248 |
):
|