Spaces:
Paused
Paused
Rename gradio.py to app_gr.py
Browse files- gradio.py → app_gr.py +7 -14
gradio.py → app_gr.py
RENAMED
@@ -161,20 +161,13 @@ async def setup():
|
|
161 |
|
162 |
return output_file
|
163 |
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
submit_btn = gr.Button("🔁 Processar", variant="primary") # Estilo primário
|
172 |
-
|
173 |
-
submit_btn.click(
|
174 |
-
fn=return_video, # Sua função de processamento
|
175 |
-
inputs=video_input,
|
176 |
-
outputs=image_output,
|
177 |
-
)
|
178 |
|
179 |
interface.launch(share=True)
|
180 |
|
|
|
161 |
|
162 |
return output_file
|
163 |
|
164 |
+
interface = gr.Interface(
|
165 |
+
fn=return_video, # Your function to process video
|
166 |
+
inputs=gr.Video(label="Carregue seu vídeo"),
|
167 |
+
outputs=gr.Video(label="Imagem Processada"),
|
168 |
+
title="Retorno de Imagem",
|
169 |
+
description="📼 Conversor de Vídeo para Imagem"
|
170 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
interface.launch(share=True)
|
173 |
|