Spaces:
Runtime error
Runtime error
Update for gradio 3.0
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🐠
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 3.0.2
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
CHANGED
|
@@ -20,9 +20,6 @@ DESCRIPTION = '''The original TADNE site is https://thisanimedoesnotexist.ai/.
|
|
| 20 |
You can view images generated by the TADNE model with seed 0-99999.
|
| 21 |
You can filter images based on predictions by the [DeepDanbooru](https://github.com/KichangKim/DeepDanbooru) model.
|
| 22 |
The original images are 512x512 in size, but here they are resized to 128x128.
|
| 23 |
-
|
| 24 |
-
Known issues:
|
| 25 |
-
- The `Seed` table in the output doesn't refresh properly in gradio 2.9.1. https://github.com/gradio-app/gradio/issues/921
|
| 26 |
'''
|
| 27 |
ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.tadne-image-selector" alt="visitor badge"/></center>'
|
| 28 |
|
|
@@ -39,7 +36,6 @@ def parse_args() -> argparse.Namespace:
|
|
| 39 |
dest='enable_queue',
|
| 40 |
action='store_false')
|
| 41 |
parser.add_argument('--allow-flagging', type=str, default='never')
|
| 42 |
-
parser.add_argument('--allow-screenshot', action='store_true')
|
| 43 |
return parser.parse_args()
|
| 44 |
|
| 45 |
|
|
@@ -245,7 +241,6 @@ def main():
|
|
| 245 |
description=DESCRIPTION,
|
| 246 |
article=ARTICLE,
|
| 247 |
theme=args.theme,
|
| 248 |
-
allow_screenshot=args.allow_screenshot,
|
| 249 |
allow_flagging=args.allow_flagging,
|
| 250 |
live=args.live,
|
| 251 |
).launch(
|
|
|
|
| 20 |
You can view images generated by the TADNE model with seed 0-99999.
|
| 21 |
You can filter images based on predictions by the [DeepDanbooru](https://github.com/KichangKim/DeepDanbooru) model.
|
| 22 |
The original images are 512x512 in size, but here they are resized to 128x128.
|
|
|
|
|
|
|
|
|
|
| 23 |
'''
|
| 24 |
ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts.tadne-image-selector" alt="visitor badge"/></center>'
|
| 25 |
|
|
|
|
| 36 |
dest='enable_queue',
|
| 37 |
action='store_false')
|
| 38 |
parser.add_argument('--allow-flagging', type=str, default='never')
|
|
|
|
| 39 |
return parser.parse_args()
|
| 40 |
|
| 41 |
|
|
|
|
| 241 |
description=DESCRIPTION,
|
| 242 |
article=ARTICLE,
|
| 243 |
theme=args.theme,
|
|
|
|
| 244 |
allow_flagging=args.allow_flagging,
|
| 245 |
live=args.live,
|
| 246 |
).launch(
|