kobiso commited on
Commit
82f84a5
โ€ข
1 Parent(s): f83b649

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
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
- ["hwangchil_tree.jpg", "ํ™ฉ์น  ๋‚˜๋ฌด ๋ฌ˜๋ชฉ,ํ™ฉ์น  ๋‚˜๋ฌด,๋‚œ,์†Œ๋‚˜๋ฌด ๋ฌ˜๋ชฉ,์•ผ์ž์ˆ˜"],
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 = ""