tommy24 commited on
Commit
61675b9
·
1 Parent(s): e147353

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -119,13 +119,11 @@ def function(Textbox,Textbox2,Textbox3):
119
  "sec-fetch-site": "same-site",
120
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
121
  }
122
- payload = {
 
123
  "Body":prompt,
124
  "From":f"4b7cec35-d15b-422d-838f-b25583bde426{random.randint(1,100)}"
125
- }
126
- href = os.environ.get("href")
127
- response = requests.post(href,data=payload,headers=headers)
128
-
129
  data = response.json()
130
  data = data["message"]
131
  if "Lexii" in data:
 
119
  "sec-fetch-site": "same-site",
120
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
121
  }
122
+ href = os.environ.get("href")
123
+ response = requests.post(href,json={
124
  "Body":prompt,
125
  "From":f"4b7cec35-d15b-422d-838f-b25583bde426{random.randint(1,100)}"
126
+ },headers=headers)
 
 
 
127
  data = response.json()
128
  data = data["message"]
129
  if "Lexii" in data: