Anne Marthe Sophie Ngo Bibinbe commited on
Commit
287f781
·
1 Parent(s): 22cc388

Update space

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -175,12 +175,13 @@ def process_video(video_path, prompt):
175
  # Define Gradio interface
176
  iface = gr.Interface(
177
  fn=process_video,
178
- inputs=[gr.Video(type="filepath"), gr.Textbox(placeholder="Enter your prompt")],
179
  outputs=[gr.Video(), gr.File(label="Generated File")],
180
  title="Video Processing App",
181
  description="Upload a video and enter a prompt. The app will return the processed video and a generated file."
182
  )
183
 
 
184
  # Launch the app
185
  if __name__ == "__main__":
186
  iface.launch()
 
175
  # Define Gradio interface
176
  iface = gr.Interface(
177
  fn=process_video,
178
+ inputs=[gr.File(label="Upload Video"), gr.Textbox(placeholder="Enter your prompt")],
179
  outputs=[gr.Video(), gr.File(label="Generated File")],
180
  title="Video Processing App",
181
  description="Upload a video and enter a prompt. The app will return the processed video and a generated file."
182
  )
183
 
184
+
185
  # Launch the app
186
  if __name__ == "__main__":
187
  iface.launch()