jeremyrmanning commited on
Commit
603d210
·
1 Parent(s): 61e167f

trying another approach...

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -74,12 +74,10 @@ def generate_interpolation(text, fps=10):
74
  demo = gr.Blocks()
75
 
76
  with demo:
77
- text = gr.Textbox(placeholder='human, human head, brain, brain in a computer, humanoid robot', label='Input a comma-separated list of terms')
78
- #button_gen_video = gr.Button("Generate Video")
79
- #output_interpolation = gr.Video(label="Generated Video")
80
- #button_gen_video.click(fn=generate_interpolation, inputs=text, outputs=output_interpolation)
81
- button = gr.Button('display text')
82
- output = gr.Text()
83
- button.click(fn=lambda x: x, inputs=text, outputs=text)
84
 
85
  demo.launch(debug=True, enable_queue=True)
 
74
  demo = gr.Blocks()
75
 
76
  with demo:
77
+ text = gr.Textbox(placeholder='human, human head, brain, brain in a computer, humanoid robot', label='Input a comma-separated list of terms:')
78
+ button = gr.Button("Generate Video")
79
+ output = gr.Video(label="Generated Video")
80
+
81
+ button.click(fn=generate_interpolation, inputs=text, outputs='out.mp4')
 
 
82
 
83
  demo.launch(debug=True, enable_queue=True)