Omnibus commited on
Commit
2c0525c
1 Parent(s): fb9f279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -71
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
 
3
- from share_btn import community_icon_html, loading_icon_html, share_js
4
 
5
  from modelscope.pipelines import pipeline
6
  from modelscope.outputs import OutputKeys
@@ -139,73 +139,8 @@ with gr.Blocks(css=css) as demo:
139
  elem_id = "video-out"
140
  )
141
 
142
- with gr.Row():
143
-
144
- with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
145
- community_icon = gr.HTML(community_icon_html)
146
- loading_icon = gr.HTML(loading_icon_html)
147
- share_button = gr.Button("Share with Community", elem_id="share-btn")
148
-
149
- gr.Markdown("""
150
-
151
- [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-lg.svg#center)](https://huggingface.co/spaces/fffiloni/MS-Image2Video-cloning?duplicate=true)
152
- """)
153
-
154
- gr.Examples(
155
- examples = [
156
- [
157
- "./examples/renaissance.png",
158
- ],
159
- [
160
- "./examples/reverie.png",
161
- ],
162
- [
163
- "./examples/animals_firecamp.png",
164
- ],
165
- [
166
- "./examples/adventurer.png",
167
- ],
168
- [
169
- "./examples/anime_girl.png",
170
- ],
171
- [
172
- "./examples/hopper_nighthawks.jpeg",
173
- ],
174
- [
175
- "./examples/joconde.png",
176
- ],
177
- [
178
- "./examples/medieval_barmaid.png",
179
- ],
180
- [
181
- "./examples/old_ladies.jpeg",
182
- ],
183
- [
184
- "./examples/snow_white.png",
185
- ],
186
- [
187
- "./examples/violonist.png",
188
- ],
189
- [
190
- "./examples/voilier.jpeg",
191
- ],
192
- [
193
- "./examples/wet_coast.jpeg",
194
- ],
195
- [
196
- "./examples/winter_out.png",
197
- ],
198
- ],
199
- fn = infer,
200
- inputs = [
201
- image_in
202
- ],
203
- outputs = [
204
- video_out,
205
- share_group
206
- ],
207
- cache_examples = True
208
- )
209
 
210
  gr.HTML("""
211
 
@@ -222,11 +157,10 @@ with gr.Blocks(css=css) as demo:
222
  image_in
223
  ],
224
  outputs = [
225
- video_out,
226
- share_group
227
  ]
228
  )
229
 
230
- share_button.click(None, [], [], _js=share_js)
231
 
232
  demo.queue(max_size=6).launch()
 
1
  import gradio as gr
2
 
3
+ #from share_btn import community_icon_html, loading_icon_html, share_js
4
 
5
  from modelscope.pipelines import pipeline
6
  from modelscope.outputs import OutputKeys
 
139
  elem_id = "video-out"
140
  )
141
 
142
+
143
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  gr.HTML("""
146
 
 
157
  image_in
158
  ],
159
  outputs = [
160
+ video_out
 
161
  ]
162
  )
163
 
164
+ #share_button.click(None, [], [], _js=share_js)
165
 
166
  demo.queue(max_size=6).launch()