Spaces:
Build error
Build error
chore: update default query value
Browse files- text2image.py +2 -2
text2image.py
CHANGED
@@ -27,11 +27,11 @@ def app(model_name):
|
|
27 |
Base model `koclip` uses `klue/roberta` as text encoder and `openai/clip-vit-base-patch32` as image encoder.
|
28 |
Larger model `koclip-large` uses `klue/roberta` as text encoder and bigger `google/vit-large-patch16-224` as image encoder.
|
29 |
|
30 |
-
Example Queries : ์ปดํจํฐํ๋ ๊ณ ์์ด(Cat playing on a computer), ๊ธธ ์์์ ๋ฌ๋ฆฌ๋ ์๋์ฐจ(Car running on the road)
|
31 |
"""
|
32 |
)
|
33 |
|
34 |
-
query = st.text_input("ํ๊ธ ์ง๋ฌธ์ ์ ์ด์ฃผ์ธ์ (Korean Text Query) :", value="
|
35 |
if st.button("์ง๋ฌธ (Query)"):
|
36 |
proc = processor(text=[query], images=None, return_tensors="jax", padding=True)
|
37 |
vec = np.asarray(model.get_text_features(**proc))
|
|
|
27 |
Base model `koclip` uses `klue/roberta` as text encoder and `openai/clip-vit-base-patch32` as image encoder.
|
28 |
Larger model `koclip-large` uses `klue/roberta` as text encoder and bigger `google/vit-large-patch16-224` as image encoder.
|
29 |
|
30 |
+
Example Queries : ์ปดํจํฐํ๋ ๊ณ ์์ด(Cat playing on a computer), ๊ธธ ์์์ ๋ฌ๋ฆฌ๋ ์๋์ฐจ(Car running on the road)
|
31 |
"""
|
32 |
)
|
33 |
|
34 |
+
query = st.text_input("ํ๊ธ ์ง๋ฌธ์ ์ ์ด์ฃผ์ธ์ (Korean Text Query) :", value="์ปดํจํฐํ๋ ๊ณ ์์ด")
|
35 |
if st.button("์ง๋ฌธ (Query)"):
|
36 |
proc = processor(text=[query], images=None, return_tensors="jax", padding=True)
|
37 |
vec = np.asarray(model.get_text_features(**proc))
|