TIMBOVILL commited on
Commit
5a9b61d
1 Parent(s): 6a80409

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -83,19 +83,15 @@ chat_interface = gr.ChatInterface(
83
 
84
  def process_video_interface():
85
  text_input = gr.Textbox(lines=5, label="Text (8 words max per line)")
86
- process_button = gr.Button("Process Video")
87
  video_output = gr.Video(label="Processed Video")
88
 
89
- def process_video_callback():
90
- text = text_input.value
91
  output_path = process_video(text)
92
  video_output.value = output_path
93
 
94
- process_button.click(process_video_callback)
95
-
96
  return gr.Interface(
97
- fn=None,
98
- inputs=[text_input, process_button],
99
  outputs=video_output,
100
  title="Video Processing",
101
  description="Select a video file from 'videos' folder, add text, and process.",
 
83
 
84
  def process_video_interface():
85
  text_input = gr.Textbox(lines=5, label="Text (8 words max per line)")
 
86
  video_output = gr.Video(label="Processed Video")
87
 
88
+ def process_video_callback(text):
 
89
  output_path = process_video(text)
90
  video_output.value = output_path
91
 
 
 
92
  return gr.Interface(
93
+ fn=process_video_callback,
94
+ inputs=text_input,
95
  outputs=video_output,
96
  title="Video Processing",
97
  description="Select a video file from 'videos' folder, add text, and process.",