Spaces:
Sleeping
Sleeping
changed the structure of the dict
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def respond(destination, transportation, date, preference, include_options, mino
|
|
| 147 |
"""
|
| 148 |
|
| 149 |
try:
|
| 150 |
-
response = client.chat_completion([{"role": "user", "parts":
|
| 151 |
print(response)
|
| 152 |
travel_guide_output = response.text
|
| 153 |
print(travel_guide_output)
|
|
@@ -171,7 +171,7 @@ def chatbot_respond(message, chat_history):
|
|
| 171 |
"""
|
| 172 |
|
| 173 |
try:
|
| 174 |
-
|
| 175 |
return response.text
|
| 176 |
except Exception as e:
|
| 177 |
return f"An error occurred: {e}"
|
|
|
|
| 147 |
"""
|
| 148 |
|
| 149 |
try:
|
| 150 |
+
response = client.chat_completion([{"role": "user", "parts":{"text":"prompt"}}])
|
| 151 |
print(response)
|
| 152 |
travel_guide_output = response.text
|
| 153 |
print(travel_guide_output)
|
|
|
|
| 171 |
"""
|
| 172 |
|
| 173 |
try:
|
| 174 |
+
response = client.chat_completion([{"role": "user", "parts":{"text":"prompt"}}])
|
| 175 |
return response.text
|
| 176 |
except Exception as e:
|
| 177 |
return f"An error occurred: {e}"
|