Update first launch commands to deliver the usage of ";" and app, path_to_local_server, share_url = iface.launch()

This commit is contained in:
Ömer Faruk Özdemir 2022-02-28 17:48:47 +03:00
parent 51e57675da
commit 054a5850e3
3 changed files with 5 additions and 3 deletions

View File

@ -7,4 +7,4 @@ def greet(name):
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
if __name__ == "__main__":
iface.launch()
iface.launch();

View File

@ -11,4 +11,5 @@ iface = gr.Interface(
outputs="text",
)
if __name__ == "__main__":
iface.launch()
app, path_to_local_server, share_url = iface.launch()

View File

@ -14,4 +14,5 @@ iface = gr.Interface(
outputs=["text", "number"],
)
if __name__ == "__main__":
iface.launch()
app, path_to_local_server, share_url = iface.launch()