Superintelligence1130 commited on
Commit
baa3eed
1 Parent(s): 4414c7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -10,8 +10,11 @@ pipe.enable_model_cpu_offload()
10
  def text_video(prompt):
11
  video_frames = pipe(prompt, num_inference_steps=25).frames
12
  video_path = export_to_video(video_frames)
13
- prompt = gr.Textbox('어떤 비디오를 생성할까요? : ')
14
  result = gr.Video(label="Generated Video")
15
- run_button.click(fn=model.text_video,
16
- inputs=prompt,
17
- outputs=result)
 
 
 
 
10
  def text_video(prompt):
11
  video_frames = pipe(prompt, num_inference_steps=25).frames
12
  video_path = export_to_video(video_frames)
13
+
14
  result = gr.Video(label="Generated Video")
15
+ gr.Interface(
16
+ fn=text_video,
17
+ inputs=gr.Textbox(label="어떤 비디오를 생성할까요? : "),
18
+ outputs=result
19
+
20
+ ).launch()