Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,17 +62,12 @@ if __name__ == '__main__':
|
|
| 62 |
outputs = ['label']
|
| 63 |
|
| 64 |
title = "KELIP"
|
| 65 |
-
|
| 66 |
-
if torch.cuda.is_available():
|
| 67 |
-
demo_status = "Demo is running on GPU"
|
| 68 |
-
else:
|
| 69 |
-
demo_status = "Demo is running on CPU"
|
| 70 |
-
description = f"Details: paper_url. {demo_status}"
|
| 71 |
examples = [
|
| 72 |
["squid_sundae.jpg", "์ค์ง์ด ์๋,๊น๋ฐฅ,์๋,๋ก๋ณถ์ด"],
|
| 73 |
["seokchon_lake.jpg", "ํํ์๋ฌธ,์ฌ๋ฆผํฝ๊ณต์,๋กฏ๋ฐ์๋,์์ดํธ์"],
|
| 74 |
-
["seokchon_lake.jpg", "
|
| 75 |
-
["
|
| 76 |
]
|
| 77 |
|
| 78 |
article = ""
|
|
|
|
| 62 |
outputs = ['label']
|
| 63 |
|
| 64 |
title = "KELIP"
|
| 65 |
+
description = "Zero-shot classification with KELIP -- Korean and English bilingual contrastive Language-Image Pre-training model that is trained with collected 1.1 billion image-text pairs (708 million Korean and 476 million English).<br> <br><a href='' target='_blank'>Arxiv</a> | <a href='https://github.com/navervision/KELIP' target='_blank'>Github</a>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
examples = [
|
| 67 |
["squid_sundae.jpg", "์ค์ง์ด ์๋,๊น๋ฐฅ,์๋,๋ก๋ณถ์ด"],
|
| 68 |
["seokchon_lake.jpg", "ํํ์๋ฌธ,์ฌ๋ฆผํฝ๊ณต์,๋กฏ๋ฐ์๋,์์ดํธ์"],
|
| 69 |
+
["seokchon_lake.jpg", "spring,summer,autumn,winter"],
|
| 70 |
+
["dog.jpg", "a dog,a cat,a tiger,a rabbit"],
|
| 71 |
]
|
| 72 |
|
| 73 |
article = ""
|