Diangle commited on
Commit
1435787
1 Parent(s): 65d5293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,11 +7,12 @@ import faiss
7
  import torch
8
  from transformers import CLIPTokenizer, CLIPTextModelWithProjection
9
 
 
10
 
11
  TITLE="""<h1 style="font-size: 64px;" align="center">Video Retrieval</h1>"""
12
 
13
  DESCRIPTION="""This is a video retrieval demo using [Diangle/clip4clip-webvid](https://huggingface.co/Diangle/clip4clip-webvid)."""
14
- IMAGE='<div style="text-align: right;"><img src="https://huggingface.co/spaces/Diangle/Clip4Clip-webvid/resolve/main/Searchium.png" width="333" height="216"/>'
15
 
16
  DATA_PATH = './data'
17
 
@@ -105,9 +106,9 @@ def search(search_sentence):
105
 
106
 
107
  with gr.Blocks() as demo:
 
108
  gr.HTML(TITLE)
109
  gr.Markdown(DESCRIPTION)
110
- gr.HTML(IMAGE)
111
  gr.Markdown("Retrieval of top 5 videos relevant to the input sentence: ")
112
  with gr.Row():
113
  with gr.Column():
 
7
  import torch
8
  from transformers import CLIPTokenizer, CLIPTextModelWithProjection
9
 
10
+ IMAGE='<div style="text-align: right;"><img src="https://huggingface.co/spaces/Diangle/Clip4Clip-webvid/resolve/main/Searchium.png" width="111" height="72"/>'
11
 
12
  TITLE="""<h1 style="font-size: 64px;" align="center">Video Retrieval</h1>"""
13
 
14
  DESCRIPTION="""This is a video retrieval demo using [Diangle/clip4clip-webvid](https://huggingface.co/Diangle/clip4clip-webvid)."""
15
+
16
 
17
  DATA_PATH = './data'
18
 
 
106
 
107
 
108
  with gr.Blocks() as demo:
109
+ gr.HTML(IMAGE)
110
  gr.HTML(TITLE)
111
  gr.Markdown(DESCRIPTION)
 
112
  gr.Markdown("Retrieval of top 5 videos relevant to the input sentence: ")
113
  with gr.Row():
114
  with gr.Column():