Date time added
Browse files
app.py
CHANGED
@@ -256,38 +256,39 @@ with gr.Blocks() as demo:
|
|
256 |
</div>
|
257 |
<p style="margin-bottom: 10px; font-size: 94%">
|
258 |
Trclip is Turkish port of real clip. In this space you can try your images or/and texts.
|
259 |
-
Also you can use pre calculated TrCaption embeddings.
|
260 |
-
Number of texts = 3533312
|
261 |
-
Number of images = 3070976
|
262 |
-
|
263 |
Some images are not available in the internet because I downloaded and calculated TrCaption embeddings long time ago. Don't be suprise if you encounter with Image not found :D
|
264 |
|
265 |
-
|
266 |
-
|
|
|
267 |
</p>
|
268 |
-
|
|
|
|
|
|
|
269 |
<div class="sc-jSFjdj sc-iCoGMd jcTaHb kMthTr">
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
</div>
|
276 |
-
<div class="sc-jSFjdj sc-gKAaRy jcTaHb hydYaP">
|
277 |
-
<div class="sc-pNWdM lfZLSv"> </div>
|
278 |
</div>
|
279 |
</div>
|
280 |
""")
|
281 |
|
282 |
with gr.Tabs():
|
283 |
-
with gr.TabItem("
|
284 |
im_input = gr.components.File(label="Image input", optional=True, file_count='multiple')
|
285 |
-
is_trcap_ims = gr.Checkbox(label="Use TRCaption Images\n[Note: Random 2 sample selected in text retrieval mode]")
|
286 |
|
287 |
with gr.Tabs():
|
288 |
with gr.TabItem("Input a text (Seperated by new line Max 2 for Image retrieval)"):
|
289 |
-
text_input = gr.components.Textbox(label="Text input", optional=True)
|
290 |
-
is_trcap_texts = gr.Checkbox(label="Use TrCaption Captions \n[Note: Random 2 sample selected in image retrieval mode]")
|
291 |
|
292 |
im_ret_but = gr.Button("Image Retrieval")
|
293 |
text_ret_but = gr.Button("Text Retrieval")
|
|
|
256 |
</div>
|
257 |
<p style="margin-bottom: 10px; font-size: 94%">
|
258 |
Trclip is Turkish port of real clip. In this space you can try your images or/and texts.
|
259 |
+
<br>Also you can use pre calculated TrCaption embeddings.
|
260 |
+
<br>Number of texts = 3533312
|
261 |
+
<br>Number of images = 3070976
|
262 |
+
<br>
|
263 |
Some images are not available in the internet because I downloaded and calculated TrCaption embeddings long time ago. Don't be suprise if you encounter with Image not found :D
|
264 |
|
265 |
+
<div style="text-align: center;font-size: 100%">
|
266 |
+
<p><strong><span style="background-color: #000000; color: #ffffff;"><a style="background-color: #000000; color: #ffffff;" href="https://github.com/yusufani/TrCLIP">A GitHub Repository</a> </span>--- <span style="background-color: #000000;"><span style="color: #ffffff;">Paper( Not available yet ) </span></span></strong></p>
|
267 |
+
</div>
|
268 |
</p>
|
269 |
+
|
270 |
+
</div>
|
271 |
+
<div style="text-align: center; margin: 0 auto;">
|
272 |
+
<p style="margin-bottom: 10px; font-size: 75%" ><em>Huggingface Space containers has 16 gb ram. TrCaption embeddings are totaly 20 gb. </em><em>I did a lot of writing and reading to files to make this space workable. That's why<span style="background-color: #ff6600; color: #ffffff;"> <strong>it's running much slower if you're using TrCaption Embeddig</strong>s</span>.</em></p>
|
273 |
<div class="sc-jSFjdj sc-iCoGMd jcTaHb kMthTr">
|
274 |
+
<div class="sc-iqAclL xfxEN">
|
275 |
+
<div class="sc-bdnxRM fJdnBK sc-crzoAE DykGo">
|
276 |
+
<div class="sc-gtsrHT gfuSqG"> </div>
|
277 |
+
</div>
|
278 |
+
</div>
|
|
|
|
|
|
|
279 |
</div>
|
280 |
</div>
|
281 |
""")
|
282 |
|
283 |
with gr.Tabs():
|
284 |
+
with gr.TabItem("Upload a Images"):
|
285 |
im_input = gr.components.File(label="Image input", optional=True, file_count='multiple')
|
286 |
+
is_trcap_ims = gr.Checkbox(label="Use TRCaption Images\n[Note: Random 2 sample selected in text retrieval mode]",default=True)
|
287 |
|
288 |
with gr.Tabs():
|
289 |
with gr.TabItem("Input a text (Seperated by new line Max 2 for Image retrieval)"):
|
290 |
+
text_input = gr.components.Textbox(label="Text input", optional=True , placeholder = "kedi\nköpek\nGemi\nKahvesini içmekte olan bir adam\n Kahvesini içmekte olan bir kadın\nAraba")
|
291 |
+
is_trcap_texts = gr.Checkbox(label="Use TrCaption Captions \n[Note: Random 2 sample selected in image retrieval mode]",default=True)
|
292 |
|
293 |
im_ret_but = gr.Button("Image Retrieval")
|
294 |
text_ret_but = gr.Button("Text Retrieval")
|