Spaces:
Sleeping
Sleeping
test-rtechs
commited on
Update app_rvc.py
Browse filespublicshare_updated
- 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=
|
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),
|