Spaces:
Running
Running
xiaoyao9184
commited on
Synced repo using 'sync_with_huggingface' Github Action
Browse files- gradio_run.py +7 -0
gradio_run.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NOTE: copy from gradio bin
|
2 |
+
import re
|
3 |
+
import sys
|
4 |
+
from gradio.cli import cli
|
5 |
+
if __name__ == '__main__':
|
6 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
7 |
+
sys.exit(cli())
|