Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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:
|