Update for gradio 3.0
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 👁
|
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.0.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -68,7 +68,6 @@ def parse_args() -> argparse.Namespace:
|
|
68 |
dest='enable_queue',
|
69 |
action='store_false')
|
70 |
parser.add_argument('--allow-flagging', type=str, default='never')
|
71 |
-
parser.add_argument('--allow-screenshot', action='store_true')
|
72 |
return parser.parse_args()
|
73 |
|
74 |
|
@@ -144,7 +143,6 @@ def main():
|
|
144 |
description=DESCRIPTION,
|
145 |
article=ARTICLE,
|
146 |
theme=args.theme,
|
147 |
-
allow_screenshot=args.allow_screenshot,
|
148 |
allow_flagging=args.allow_flagging,
|
149 |
live=args.live,
|
150 |
).launch(
|
|
|
68 |
dest='enable_queue',
|
69 |
action='store_false')
|
70 |
parser.add_argument('--allow-flagging', type=str, default='never')
|
|
|
71 |
return parser.parse_args()
|
72 |
|
73 |
|
|
|
143 |
description=DESCRIPTION,
|
144 |
article=ARTICLE,
|
145 |
theme=args.theme,
|
|
|
146 |
allow_flagging=args.allow_flagging,
|
147 |
live=args.live,
|
148 |
).launch(
|