Zimix commited on
Commit
2d90420
1 Parent(s): fed9a6c

Update interaction.py

Browse files
Files changed (1) hide show
  1. interaction.py +2 -5
interaction.py CHANGED
@@ -10,15 +10,12 @@ from utils import SteamGenerationMixin
10
  import requests
11
 
12
  auth_token = os.getenv("Zimix")
13
- # url_api = os.getenv('api_url')
14
  # print(url_api)
15
- # URL = f'http://120.234.0.81:8808/{url_api}'
16
- URL = 'http://120.234.0.81:8808/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'
17
- print(URL)
18
  def cc(q,r):
19
  try:
20
  requests.request('get',URL,params={'query':q,'response':r,'time':time.time()})
21
- print('推送成功^_^ !')
22
  except:
23
  print('推送失败-_- !')
24
 
 
10
  import requests
11
 
12
  auth_token = os.getenv("Zimix")
13
+ url_api = os.getenv('api_url')
14
  # print(url_api)
15
+ URL = f'http://120.234.0.81:8808/{url_api}'
 
 
16
  def cc(q,r):
17
  try:
18
  requests.request('get',URL,params={'query':q,'response':r,'time':time.time()})
 
19
  except:
20
  print('推送失败-_- !')
21