freemt commited on
Commit
f5417e9
1 Parent(s): f6e4487

Update share=True for hf spaces

Browse files
gradio_queue.db CHANGED
Binary files a/gradio_queue.db and b/gradio_queue.db differ
 
radiobee/__main__.py CHANGED
@@ -98,8 +98,10 @@ if __name__ == "__main__":
98
  server_name = "0.0.0.0"
99
  debug = False
100
  debug = True
 
101
  else:
102
  server_name = "127.0.0.1"
 
103
 
104
  if debug:
105
  logzero.loglevel(10)
@@ -424,8 +426,7 @@ if __name__ == "__main__":
424
  )
425
 
426
  iface.launch(
427
- share=False,
428
- # share=True,
429
  debug=debug,
430
  show_error=True,
431
  server_name=server_name,
 
98
  server_name = "0.0.0.0"
99
  debug = False
100
  debug = True
101
+ share = True
102
  else:
103
  server_name = "127.0.0.1"
104
+ share = False
105
 
106
  if debug:
107
  logzero.loglevel(10)
 
426
  )
427
 
428
  iface.launch(
429
+ share=share,
 
430
  debug=debug,
431
  show_error=True,
432
  server_name=server_name,
radiobee/gradiobee.py CHANGED
@@ -31,14 +31,11 @@ from radiobee.text2lists import text2lists
31
 
32
  uname = platform.uname()
33
  HFSPACES = False
34
- if "amzn2" in uname.release: # on hf spaces
35
- HFSPACES = True
36
- from sentence_transformers import SentenceTransformer # noqa
37
- model_s = SentenceTransformer('sentence-transformers/distiluse-base-multilingual-cased-v1')
38
  if True:
 
39
  from sentence_transformers import SentenceTransformer # noqa
40
  model_s = SentenceTransformer('sentence-transformers/distiluse-base-multilingual-cased-v1')
41
- # 539M
42
 
43
  sns.set()
44
  sns.set_style("darkgrid")
 
31
 
32
  uname = platform.uname()
33
  HFSPACES = False
34
+ # if "amzn2" in uname.release: # on hf spaces
 
 
 
35
  if True:
36
+ HFSPACES = True
37
  from sentence_transformers import SentenceTransformer # noqa
38
  model_s = SentenceTransformer('sentence-transformers/distiluse-base-multilingual-cased-v1')
 
39
 
40
  sns.set()
41
  sns.set_style("darkgrid")