Spaces:
Runtime error
Runtime error
ahmedJaafari
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def classify_audio(audio):
|
|
28 |
else:
|
29 |
service_html = "<h1 style='color:red; font-weight:bold; text-align:center;'>Error: No matching service found</h1>"
|
30 |
|
31 |
-
return service_html
|
32 |
|
33 |
iface = gr.Interface(
|
34 |
fn=classify_audio,
|
@@ -37,7 +37,7 @@ iface = gr.Interface(
|
|
37 |
],
|
38 |
outputs=[
|
39 |
gr.HTML(label="Service"), # Colored HTML output for service
|
40 |
-
gr.Textbox(label="Transcript") # Transcript of the audio
|
41 |
],
|
42 |
title="Vochai - IVR Routing System",
|
43 |
description=(
|
|
|
28 |
else:
|
29 |
service_html = "<h1 style='color:red; font-weight:bold; text-align:center;'>Error: No matching service found</h1>"
|
30 |
|
31 |
+
return service_html#, transcript
|
32 |
|
33 |
iface = gr.Interface(
|
34 |
fn=classify_audio,
|
|
|
37 |
],
|
38 |
outputs=[
|
39 |
gr.HTML(label="Service"), # Colored HTML output for service
|
40 |
+
#gr.Textbox(label="Transcript") # Transcript of the audio
|
41 |
],
|
42 |
title="Vochai - IVR Routing System",
|
43 |
description=(
|