rwitz commited on
Commit
6750870
·
1 Parent(s): e5dfca9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def get_bot_response(url, prompt,state):
49
  "authorization": os.environ.get("RUNPOD_TOKEN")
50
  }
51
  response = requests.post(url, json=payload, headers=headers)
52
- return response.json()['output'][0]['generated_text']
53
 
54
  def chat_with_bots(user_input, state):
55
  bot_names = list(chatbots.keys())
 
49
  "authorization": os.environ.get("RUNPOD_TOKEN")
50
  }
51
  response = requests.post(url, json=payload, headers=headers)
52
+ return response.json()['output']
53
 
54
  def chat_with_bots(user_input, state):
55
  bot_names = list(chatbots.keys())