guardiancc commited on
Commit
8735b40
·
verified ·
1 Parent(s): 935c5f0

Rename gradio.py to app_gr.py

Browse files
Files changed (1) hide show
  1. 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
- with gr.Blocks(title="Retorno de Imagem") as interface:
165
- gr.Markdown("## 📼 Conversor de Vídeo para Imagem")
166
-
167
- with gr.Row(): # Organiza os componentes em uma linha
168
- video_input = gr.Video(label="Carregue seu vídeo")
169
- image_output = gr.Video(label="Imagem Processada",)
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