Commit
·
96c1034
1
Parent(s):
31b654e
Refactor variable names: Prefix `email`, `company_name`, and `tolerance` with underscores (`_`) for consistency
Browse files
app.py
CHANGED
|
@@ -279,14 +279,14 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="indigo", secondary_hue
|
|
| 279 |
# Second Row: 2/3 Email Input 1/3 Company Name Input
|
| 280 |
with gr.Row(elem_classes="input-section"):
|
| 281 |
with gr.Column(scale=2):
|
| 282 |
-
|
| 283 |
with gr.Column(scale=1):
|
| 284 |
-
|
| 285 |
|
| 286 |
# Third Row: Tolerance Percentage
|
| 287 |
with gr.Row(elem_classes="input-section"):
|
| 288 |
-
|
| 289 |
-
|
| 290 |
|
| 291 |
# Fourth Row: Processing Status
|
| 292 |
with gr.Row(elem_classes="output-section"):
|
|
@@ -306,7 +306,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="indigo", secondary_hue
|
|
| 306 |
# Set up the processing function
|
| 307 |
submit_btn.click(
|
| 308 |
fn=process_audio,
|
| 309 |
-
inputs=[original_audio, dubbed_audio,
|
| 310 |
outputs=output
|
| 311 |
)
|
| 312 |
|
|
|
|
| 279 |
# Second Row: 2/3 Email Input 1/3 Company Name Input
|
| 280 |
with gr.Row(elem_classes="input-section"):
|
| 281 |
with gr.Column(scale=2):
|
| 282 |
+
_email = gr.Textbox(label="Email")
|
| 283 |
with gr.Column(scale=1):
|
| 284 |
+
_company_name = gr.Textbox(label="Company Name")
|
| 285 |
|
| 286 |
# Third Row: Tolerance Percentage
|
| 287 |
with gr.Row(elem_classes="input-section"):
|
| 288 |
+
_tolerance = gr.Slider(0, 100, value=5, label="Tolerance Percentage",
|
| 289 |
+
info="Set the tolerance for audio comparison.")
|
| 290 |
|
| 291 |
# Fourth Row: Processing Status
|
| 292 |
with gr.Row(elem_classes="output-section"):
|
|
|
|
| 306 |
# Set up the processing function
|
| 307 |
submit_btn.click(
|
| 308 |
fn=process_audio,
|
| 309 |
+
inputs=[original_audio, dubbed_audio, _email, _company_name, _tolerance],
|
| 310 |
outputs=output
|
| 311 |
)
|
| 312 |
|