tommy24 commited on
Commit
2ece6de
·
1 Parent(s): 9cebe62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -5,8 +5,11 @@ import os
5
  import requests
6
 
7
  def greet(prompt):
8
- if "/web" in prompt:
9
- prompt = prompt.replace("/web","")
 
 
 
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)}"