Spaces:
Running
Running
jhj0517
commited on
Commit
•
0825672
1
Parent(s):
4d6e651
refactor
Browse files
app.py
CHANGED
@@ -164,12 +164,11 @@ class App:
|
|
164 |
|
165 |
# Create the parser for command-line arguments
|
166 |
parser = argparse.ArgumentParser()
|
167 |
-
parser.add_argument('--share', type=bool, default=False, nargs='?', const=True,
|
168 |
-
help='Share value')
|
169 |
parser.add_argument('--server_name', type=str, default=None, help='Gradio server host')
|
170 |
parser.add_argument('--server_port', type=int, default=None, help='Gradio server port')
|
171 |
-
parser.add_argument('--username', type=str, default=None, help='
|
172 |
-
parser.add_argument('--password', type=str, default=None, help='
|
173 |
_args = parser.parse_args()
|
174 |
|
175 |
if __name__ == "__main__":
|
|
|
164 |
|
165 |
# Create the parser for command-line arguments
|
166 |
parser = argparse.ArgumentParser()
|
167 |
+
parser.add_argument('--share', type=bool, default=False, nargs='?', const=True, help='Gradio share value')
|
|
|
168 |
parser.add_argument('--server_name', type=str, default=None, help='Gradio server host')
|
169 |
parser.add_argument('--server_port', type=int, default=None, help='Gradio server port')
|
170 |
+
parser.add_argument('--username', type=str, default=None, help='Gradio authentication username')
|
171 |
+
parser.add_argument('--password', type=str, default=None, help='Gradio authentication password')
|
172 |
_args = parser.parse_args()
|
173 |
|
174 |
if __name__ == "__main__":
|