daidedou commited on
Commit ·
04271fd
1
Parent(s): 73f3438
added option to share
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ import svgwrite
|
|
| 7 |
import base64
|
| 8 |
import requests
|
| 9 |
from io import BytesIO
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
# -------------------------------------------------
|
|
@@ -274,4 +275,8 @@ with gr.Blocks() as demo:
|
|
| 274 |
)
|
| 275 |
|
| 276 |
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import base64
|
| 8 |
import requests
|
| 9 |
from io import BytesIO
|
| 10 |
+
import argparse
|
| 11 |
|
| 12 |
|
| 13 |
# -------------------------------------------------
|
|
|
|
| 275 |
)
|
| 276 |
|
| 277 |
|
| 278 |
+
if __name__ == "__main__":
|
| 279 |
+
parser = argparse.ArgumentParser(description="Launch the gradio demo")
|
| 280 |
+
parser.add_argument('--share', action="store_true")
|
| 281 |
+
args = parser.parse_args()
|
| 282 |
+
demo.launch(share=args.share)
|