Spaces:
Running
on
Zero
Running
on
Zero
fix: correct indentation error in web app
Browse files- src/web/app.py +12 -5
src/web/app.py
CHANGED
|
@@ -17,8 +17,8 @@ import gradio as gr
|
|
| 17 |
from ..models.processing_job import ExtractionMode, ProcessingJob
|
| 18 |
from ..services.batch_processor import BatchProcessor
|
| 19 |
from .handlers import estimate_time_handler, process_batch_handler, validate_files_handler
|
| 20 |
-
from .tabs.speaker_separation import create_speaker_separation_tab
|
| 21 |
from .tabs.speaker_extraction import create_speaker_extraction_tab
|
|
|
|
| 22 |
from .tabs.voice_denoising import create_voice_denoising_tab
|
| 23 |
|
| 24 |
logger = logging.getLogger(__name__)
|
|
@@ -83,7 +83,7 @@ def create_app() -> gr.Blocks:
|
|
| 83 |
"""
|
| 84 |
)
|
| 85 |
|
| 86 |
-
|
| 87 |
# Input Section
|
| 88 |
gr.Markdown("### 📤 Input Files")
|
| 89 |
|
|
@@ -155,7 +155,10 @@ def create_app() -> gr.Blocks:
|
|
| 155 |
|
| 156 |
# Status and Progress
|
| 157 |
status_output = gr.Textbox(
|
| 158 |
-
label="Status",
|
|
|
|
|
|
|
|
|
|
| 159 |
)
|
| 160 |
|
| 161 |
progress_output = gr.Progress()
|
|
@@ -176,9 +179,13 @@ def create_app() -> gr.Blocks:
|
|
| 176 |
visible=False,
|
| 177 |
)
|
| 178 |
|
| 179 |
-
download_zip = gr.File(
|
|
|
|
|
|
|
| 180 |
|
| 181 |
-
report_file = gr.File(
|
|
|
|
|
|
|
| 182 |
|
| 183 |
# Examples Section
|
| 184 |
gr.Markdown("### 📚 Examples")
|
|
|
|
| 17 |
from ..models.processing_job import ExtractionMode, ProcessingJob
|
| 18 |
from ..services.batch_processor import BatchProcessor
|
| 19 |
from .handlers import estimate_time_handler, process_batch_handler, validate_files_handler
|
|
|
|
| 20 |
from .tabs.speaker_extraction import create_speaker_extraction_tab
|
| 21 |
+
from .tabs.speaker_separation import create_speaker_separation_tab
|
| 22 |
from .tabs.voice_denoising import create_voice_denoising_tab
|
| 23 |
|
| 24 |
logger = logging.getLogger(__name__)
|
|
|
|
| 83 |
"""
|
| 84 |
)
|
| 85 |
|
| 86 |
+
with gr.Column(scale=1):
|
| 87 |
# Input Section
|
| 88 |
gr.Markdown("### 📤 Input Files")
|
| 89 |
|
|
|
|
| 155 |
|
| 156 |
# Status and Progress
|
| 157 |
status_output = gr.Textbox(
|
| 158 |
+
label="Status",
|
| 159 |
+
placeholder="Ready to process...",
|
| 160 |
+
interactive=False,
|
| 161 |
+
lines=2,
|
| 162 |
)
|
| 163 |
|
| 164 |
progress_output = gr.Progress()
|
|
|
|
| 179 |
visible=False,
|
| 180 |
)
|
| 181 |
|
| 182 |
+
download_zip = gr.File(
|
| 183 |
+
label="Download All (ZIP)", interactive=False, visible=False
|
| 184 |
+
)
|
| 185 |
|
| 186 |
+
report_file = gr.File(
|
| 187 |
+
label="Extraction Report", interactive=False, visible=False
|
| 188 |
+
)
|
| 189 |
|
| 190 |
# Examples Section
|
| 191 |
gr.Markdown("### 📚 Examples")
|