test-rtechs commited on
Commit
d5e579e
·
verified ·
1 Parent(s): 2ad47e4

Update app_rvc.py

Browse files

publicshare_updated

Files changed (1) hide show
  1. app_rvc.py +3 -1
app_rvc.py CHANGED
@@ -103,6 +103,8 @@ import time
103
  import hashlib
104
  import sys
105
 
 
 
106
  directories = [
107
  "downloads",
108
  "logs",
@@ -2931,7 +2933,7 @@ if __name__ == "__main__":
2931
 
2932
  app.launch(
2933
  max_threads=1,
2934
- share=args.public_url,
2935
  show_error=True,
2936
  quiet=False,
2937
  debug=(True if logger.isEnabledFor(logging.DEBUG) else False),
 
103
  import hashlib
104
  import sys
105
 
106
+ PUBLIC_SHARE = os.environ.get('GRADIO_SHARE', 'False').lower() == 'true'
107
+
108
  directories = [
109
  "downloads",
110
  "logs",
 
2933
 
2934
  app.launch(
2935
  max_threads=1,
2936
+ share=PUBLIC_SHARE,
2937
  show_error=True,
2938
  quiet=False,
2939
  debug=(True if logger.isEnabledFor(logging.DEBUG) else False),