jaketae commited on
Commit
938499b
โ€ข
1 Parent(s): 8259f2d

chore: update default query value

Browse files
Files changed (1) hide show
  1. 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))