fix
Browse files- app.py +1 -1
- app_batched.py +3 -3
app.py
CHANGED
@@ -182,7 +182,7 @@ if __name__ == "__main__":
|
|
182 |
parser.add_argument(
|
183 |
'--listen',
|
184 |
type=str,
|
185 |
-
default='
|
186 |
help='IP to listen on for connections to Gradio',
|
187 |
)
|
188 |
parser.add_argument(
|
|
|
182 |
parser.add_argument(
|
183 |
'--listen',
|
184 |
type=str,
|
185 |
+
default='0.0.0.0',
|
186 |
help='IP to listen on for connections to Gradio',
|
187 |
)
|
188 |
parser.add_argument(
|
app_batched.py
CHANGED
@@ -180,14 +180,15 @@ def ui(**kwargs):
|
|
180 |
launch_kwargs['inbrowser'] = inbrowser
|
181 |
if share:
|
182 |
launch_kwargs['share'] = share
|
183 |
-
demo.queue(max_size=
|
|
|
184 |
|
185 |
if __name__ == "__main__":
|
186 |
parser = argparse.ArgumentParser()
|
187 |
parser.add_argument(
|
188 |
'--listen',
|
189 |
type=str,
|
190 |
-
default='
|
191 |
help='IP to listen on for connections to Gradio',
|
192 |
)
|
193 |
parser.add_argument(
|
@@ -219,4 +220,3 @@ if __name__ == "__main__":
|
|
219 |
share=args.share,
|
220 |
listen=args.listen
|
221 |
)
|
222 |
-
|
|
|
180 |
launch_kwargs['inbrowser'] = inbrowser
|
181 |
if share:
|
182 |
launch_kwargs['share'] = share
|
183 |
+
demo.queue(max_size=8 * 4).launch(**launch_kwargs)
|
184 |
+
|
185 |
|
186 |
if __name__ == "__main__":
|
187 |
parser = argparse.ArgumentParser()
|
188 |
parser.add_argument(
|
189 |
'--listen',
|
190 |
type=str,
|
191 |
+
default='0.0.0.0',
|
192 |
help='IP to listen on for connections to Gradio',
|
193 |
)
|
194 |
parser.add_argument(
|
|
|
220 |
share=args.share,
|
221 |
listen=args.listen
|
222 |
)
|
|