Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,11 @@ import os
|
|
5 |
import requests
|
6 |
|
7 |
def greet(prompt):
|
8 |
-
if "/web" in prompt:
|
9 |
-
|
|
|
|
|
|
|
10 |
payload = {
|
11 |
"Body":prompt,
|
12 |
"From":f"4b7cec35-d15b-422d-838f-b25583bde426{random.randint(1,100)}"
|
|
|
5 |
import requests
|
6 |
|
7 |
def greet(prompt):
|
8 |
+
if "/web" in prompt or "web" in prompt:
|
9 |
+
try:
|
10 |
+
prompt = prompt.replace("/web","")
|
11 |
+
except:
|
12 |
+
prompt = prompt.replace("web","")
|
13 |
payload = {
|
14 |
"Body":prompt,
|
15 |
"From":f"4b7cec35-d15b-422d-838f-b25583bde426{random.randint(1,100)}"
|