Spaces:
Runtime error
Runtime error
jhj0517
commited on
Commit
•
3762ed3
1
Parent(s):
2c19a19
Added args
Browse files
app.py
CHANGED
@@ -207,7 +207,12 @@ class App:
|
|
207 |
|
208 |
self.demo.queue().launch(
|
209 |
inbrowser=self.args.inbrowser,
|
210 |
-
share=self.args.share
|
|
|
|
|
|
|
|
|
|
|
211 |
)
|
212 |
|
213 |
|
@@ -222,6 +227,11 @@ if __name__ == "__main__":
|
|
222 |
parser.add_argument('--share', type=bool, default=False, nargs='?', const=True,
|
223 |
help='Whether to create a public link for the app or not')
|
224 |
parser.add_argument('--theme', type=str, default=DEFAULT_THEME, help='Gradio Blocks theme')
|
|
|
|
|
|
|
|
|
|
|
225 |
args = parser.parse_args()
|
226 |
|
227 |
demo = App(args=args)
|
|
|
207 |
|
208 |
self.demo.queue().launch(
|
209 |
inbrowser=self.args.inbrowser,
|
210 |
+
share=self.args.share,
|
211 |
+
server_name=self.args.server_name,
|
212 |
+
server_port=self.args.server_port,
|
213 |
+
root_path=self.args.root_path,
|
214 |
+
username=self.args.username,
|
215 |
+
password=self.args.password
|
216 |
)
|
217 |
|
218 |
|
|
|
227 |
parser.add_argument('--share', type=bool, default=False, nargs='?', const=True,
|
228 |
help='Whether to create a public link for the app or not')
|
229 |
parser.add_argument('--theme', type=str, default=DEFAULT_THEME, help='Gradio Blocks theme')
|
230 |
+
parser.add_argument('--server_name', type=str, default=None, help='Gradio server host')
|
231 |
+
parser.add_argument('--server_port', type=int, default=None, help='Gradio server port')
|
232 |
+
parser.add_argument('--root_path', type=str, default=None, help='Gradio root path')
|
233 |
+
parser.add_argument('--username', type=str, default=None, help='Gradio authentication username')
|
234 |
+
parser.add_argument('--password', type=str, default=None, help='Gradio authentication password')
|
235 |
args = parser.parse_args()
|
236 |
|
237 |
demo = App(args=args)
|