Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,12 +55,12 @@ def process_input(input_type, input_data):
|
|
55 |
|
56 |
# Создаем интерфейс Gradio
|
57 |
input_type = gr.Radio(["Image", "Video"], label="Input Type")
|
58 |
-
input_data = gr.
|
59 |
|
60 |
interface = gr.Interface(
|
61 |
fn=process_input,
|
62 |
inputs=[input_type, input_data],
|
63 |
-
outputs=gr.
|
64 |
title="Background Removal",
|
65 |
description="Remove background from images or videos using rembg."
|
66 |
)
|
|
|
55 |
|
56 |
# Создаем интерфейс Gradio
|
57 |
input_type = gr.Radio(["Image", "Video"], label="Input Type")
|
58 |
+
input_data = gr.File(label="Input File") # Используем gr.File вместо gr.inputs.File
|
59 |
|
60 |
interface = gr.Interface(
|
61 |
fn=process_input,
|
62 |
inputs=[input_type, input_data],
|
63 |
+
outputs=gr.File(label="Output File"), # Используем gr.File вместо gr.outputs.File
|
64 |
title="Background Removal",
|
65 |
description="Remove background from images or videos using rembg."
|
66 |
)
|