Eric Mitchell commited on
Commit
321f098
·
1 Parent(s): 4a90a06

Update user agent.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def update_text(t, n):
49
 
50
 
51
  def detect(text):
52
- headers = {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'}
53
  x = requests.post(GET_RESULT, data={'text': text}, headers=headers).json()
54
  response = x['result']
55
  status = x['status']
 
49
 
50
 
51
  def detect(text):
52
+ headers = {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'User-Agent': 'HF_SPACES'}
53
  x = requests.post(GET_RESULT, data={'text': text}, headers=headers).json()
54
  response = x['result']
55
  status = x['status']