tommy24 commited on
Commit
813efe0
·
1 Parent(s): b0d6a2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -854,7 +854,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
854
  'Content-Type': 'application/json'
855
  }
856
 
857
- response = requests.request("POST", host, headers=headers, data=payload)
 
858
  response = response.json()
859
  res = response["choices"][0]["message"]["content"]
860
  return res
 
854
  'Content-Type': 'application/json'
855
  }
856
 
857
+ response = requests.request("POST", "https://api.ohmygpt.com/v1/chat/completions", headers=headers, data=payload)
858
+ print("GGGGG:",response.content)
859
  response = response.json()
860
  res = response["choices"][0]["message"]["content"]
861
  return res