TenPoisk commited on
Commit
7103f52
·
1 Parent(s): f7b53f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -1,11 +1,8 @@
1
- import torch
2
- from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
3
- from diffusers.utils import export_to_video
4
 
5
- pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)
6
- pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
7
- pipe.enable_model_cpu_offload()
8
-
9
- prompt = "Darth Vader is surfing on waves"
10
- video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).frames
11
- video_path = export_to_video(video_frames)
 
1
+ import gradio as gr
2
+ import tkinter
 
3
 
4
+ description = """<div>
5
+ PICSCORE BETA-1
6
+ </div>
7
+ """
8
+ gr.Interface.load("cerspense/zeroscope_v2_576w", description=description).launch()