LittleLirow commited on
Commit
a39856c
1 Parent(s): 54d6c11

Fix stub video generation error

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,6 +1,4 @@
1
- import numpy as np
2
  import gradio as gr
3
- import os
4
 
5
  def show_textbox(radio_state):
6
  if(radio_state == "User Input"):
@@ -12,8 +10,8 @@ def show_textbox(radio_state):
12
  else:
13
  return [gr.Textbox.update(visible=False) for _ in range(3)]
14
 
15
- def generate_video(x):
16
- return x
17
 
18
  def download_video(v):
19
  pass
@@ -34,12 +32,10 @@ with gr.Blocks() as demo:
34
  generate_button = gr.Button("Generate Video")
35
 
36
  with gr.Column():
37
- out_path = os.path.join(os.path.dirname(os.getcwd()), "fearflixai/src","example.mp4")
38
- print(out_path)
39
  video_out = gr.PlayableVideo("https://cdn.discordapp.com/attachments/562513006530002957/995566813008109648/Neco-Arc_Bubbles_agree_with_you.mp4")
40
  download_button = gr.Button("Download")
41
 
42
- generate_button.click(generate_video, inputs=video_out, outputs=video_out)
43
  download_button.click(download_video, inputs=video_out)
44
 
45
  demo.launch()
 
 
1
  import gradio as gr
 
2
 
3
  def show_textbox(radio_state):
4
  if(radio_state == "User Input"):
 
10
  else:
11
  return [gr.Textbox.update(visible=False) for _ in range(3)]
12
 
13
+ def generate_video():
14
+ pass
15
 
16
  def download_video(v):
17
  pass
 
32
  generate_button = gr.Button("Generate Video")
33
 
34
  with gr.Column():
 
 
35
  video_out = gr.PlayableVideo("https://cdn.discordapp.com/attachments/562513006530002957/995566813008109648/Neco-Arc_Bubbles_agree_with_you.mp4")
36
  download_button = gr.Button("Download")
37
 
38
+ generate_button.click(generate_video)
39
  download_button.click(download_video, inputs=video_out)
40
 
41
  demo.launch()