wangfuyun commited on
Commit
5e3259d
1 Parent(s): dbfadb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -241,20 +241,21 @@ with gr.Blocks() as demo:
241
  )
242
  safetensors_dropdown.change(fn=model_select, inputs=safetensors_dropdown)
243
 
244
- # gr.Examples(
245
- # examples=[
246
- # ["test_imgs/ai-generated-8496135_1280.jpg"],
247
- # ["test_imgs/dog-7396912_1280.jpg"],
248
- # ["test_imgs/ship-7833921_1280.jpg"],
249
- # ["test_imgs/girl-4898696_1280.jpg"],
250
- # ["test_imgs/power-station-6579092_1280.jpg"]
251
- # ],
252
- # inputs=[image],
253
- # outputs=[video, seed],
254
- # fn=sample,
255
- # cache_examples=True,
256
- # )
257
 
258
  if __name__ == "__main__":
259
  demo.queue(max_size=20, api_open=False)
260
- demo.launch(share=True, show_api=False)
 
 
241
  )
242
  safetensors_dropdown.change(fn=model_select, inputs=safetensors_dropdown)
243
 
244
+ gr.Examples(
245
+ examples=[
246
+ ["test_imgs/ai-generated-8496135_1280.jpg"],
247
+ ["test_imgs/dog-7396912_1280.jpg"],
248
+ ["test_imgs/ship-7833921_1280.jpg"],
249
+ ["test_imgs/girl-4898696_1280.jpg"],
250
+ ["test_imgs/power-station-6579092_1280.jpg"]
251
+ ],
252
+ inputs=[image],
253
+ outputs=[video, seed],
254
+ fn=sample,
255
+ cache_examples=True,
256
+ )
257
 
258
  if __name__ == "__main__":
259
  demo.queue(max_size=20, api_open=False)
260
+ # demo.launch(share=True, show_api=False)
261
+ demo.launch()