Spaces:
Sleeping
Sleeping
prompt fixing
Browse files
app.py
CHANGED
|
@@ -128,9 +128,9 @@ def generate_response(user_query, top_places, temperature):
|
|
| 128 |
f'{{"name": "{place[0]["Place_Name"]}", "city": "{place[0]["City"]}", "category": "{place[0]["Category"]}", "rating": {place[0]["Rating"]}, "description": "{place[0]["Description"]}"}}'
|
| 129 |
for place in top_places
|
| 130 |
])
|
| 131 |
-
system_prompt = """
|
| 132 |
You are a tour guide assistant. Present the tourism recommendations to the user in Bahasa Indonesia.
|
| 133 |
-
Only and must only return 5 places that suitable what user wants and provided the data in a clear and concise format.
|
| 134 |
"""
|
| 135 |
response = client.chat.completions.create(
|
| 136 |
model="llama-3.1-70b-versatile",
|
|
|
|
| 128 |
f'{{"name": "{place[0]["Place_Name"]}", "city": "{place[0]["City"]}", "category": "{place[0]["Category"]}", "rating": {place[0]["Rating"]}, "description": "{place[0]["Description"]}"}}'
|
| 129 |
for place in top_places
|
| 130 |
])
|
| 131 |
+
system_prompt = f"""
|
| 132 |
You are a tour guide assistant. Present the tourism recommendations to the user in Bahasa Indonesia.
|
| 133 |
+
Only and must only return 5 places that suitable what user wants and provided the data in a clear and concise format. Only return the city that mentioned in \"{user_query}\".
|
| 134 |
"""
|
| 135 |
response = client.chat.completions.create(
|
| 136 |
model="llama-3.1-70b-versatile",
|