yfyangd commited on
Commit
0746c62
·
1 Parent(s): 2575ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -134,4 +134,17 @@ cover = gr.inputs.Image(shape=(width, height), label='Upload cover image to clas
134
  label = gr.outputs.Label(label='Model prediction')
135
 
136
  examples=["00064.jpg","00068.jpg", "00069.jpg"]
137
- gr.Interface(fn=interrogate,inputs=cover,outputs=label,examples=examples).launch(share=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  label = gr.outputs.Label(label='Model prediction')
135
 
136
  examples=["00064.jpg","00068.jpg", "00069.jpg"]
137
+
138
+ title="Image2Text-CLIP Application"
139
+
140
+ description='''
141
+ 此文本是使用 OpenAI CLIP 模型針對各種藝術家、媒介和風格測試給定圖像,轉化出AI對於圖像的理解.
142
+ <th>
143
+ <iframe width="560" height="315" src="https://www.youtube.com/embed/u0HG77RNhPE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
144
+ </th>
145
+
146
+ ### 以下請輸入指定圖片, 或是選擇以下3個樣本
147
+
148
+ '''
149
+
150
+ gr.Interface(fn=interrogate,inputs=cover,outputs=label,examples=examples,title=title,description=description).launch(share=True)