bhavnapatur commited on
Commit
4717803
·
verified ·
1 Parent(s): 00b8164

changed the structure of the dict

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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":[{"text":"prompt"}]}])
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
- respone = client.chat_completion([{"role": "user", "parts":[{"text":"prompt"}]}])
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}"