adding share=True to launch for Google colab
Browse fileschanging interface.queue().launch(**launch_kwargs) with interface.queue().launch(share=True) and changing demo.queue(max_size=8 * 4).launch(**launch_kwargs) with demo.launch(share=True)
app.py
CHANGED
@@ -1537,6 +1537,7 @@ def ui_full(launch_kwargs):
|
|
1537 |
#image_a.change(get_size, image_a, outputs=[height_a, width_a])
|
1538 |
#s.change(variable_outputs, s, textboxes)
|
1539 |
s_a.change(variable_outputs, s_a, textboxes_a)
|
|
|
1540 |
interface.queue().launch(**launch_kwargs)
|
1541 |
|
1542 |
|
@@ -1615,7 +1616,8 @@ def ui_batched(launch_kwargs):
|
|
1615 |
for more details.
|
1616 |
""")
|
1617 |
|
1618 |
-
demo.queue(max_size=8 * 4).launch(**launch_kwargs)
|
|
|
1619 |
|
1620 |
|
1621 |
if __name__ == "__main__":
|
|
|
1537 |
#image_a.change(get_size, image_a, outputs=[height_a, width_a])
|
1538 |
#s.change(variable_outputs, s, textboxes)
|
1539 |
s_a.change(variable_outputs, s_a, textboxes_a)
|
1540 |
+
#interface.queue().launch(**launch_kwargs)
|
1541 |
interface.queue().launch(**launch_kwargs)
|
1542 |
|
1543 |
|
|
|
1616 |
for more details.
|
1617 |
""")
|
1618 |
|
1619 |
+
#demo.queue(max_size=8 * 4).launch(**launch_kwargs)
|
1620 |
+
demo.queue().launch(share=True)
|
1621 |
|
1622 |
|
1623 |
if __name__ == "__main__":
|