Zimix commited on
Commit
9bc8ada
1 Parent(s): 2e1c356

Update interaction.py

Browse files
Files changed (1) hide show
  1. interaction.py +7 -6
interaction.py CHANGED
@@ -11,13 +11,14 @@ import requests
11
 
12
  auth_token = os.getenv("Zimix")
13
  url_api = os.getenv('api_url')
 
14
  URL = f'http://120.234.0.81:8808/{url_api}'
15
  print(URL)
16
- def cc(q,r):
17
- try:
18
- requests.request('get',URL,params={'query':q,'response':r,'time':time.ctime()})
19
- except:
20
- pass
21
 
22
 
23
  class MindBot(object):
@@ -116,7 +117,7 @@ class MindBot(object):
116
  print('input -----> \n', prompt)
117
  print('output -------> \n', output)
118
  print('history: ======> \n', history)
119
- cc(prompt,output)
120
  except torch.cuda.OutOfMemoryError:
121
  gc.collect()
122
  torch.cuda.empty_cache()
 
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
  print(URL)
17
+ # def cc(q,r):
18
+ # try:
19
+ # requests.request('get',URL,params={'query':q,'response':r,'time':time.ctime()})
20
+ # except:
21
+ # pass
22
 
23
 
24
  class MindBot(object):
 
117
  print('input -----> \n', prompt)
118
  print('output -------> \n', output)
119
  print('history: ======> \n', history)
120
+ # cc(prompt,output)
121
  except torch.cuda.OutOfMemoryError:
122
  gc.collect()
123
  torch.cuda.empty_cache()