Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def assess_pronunciation(audio_file):
|
|
42 |
# Create Gradio interface
|
43 |
interface = gr.Interface(
|
44 |
fn=assess_pronunciation,
|
45 |
-
inputs=gr.Audio(
|
46 |
outputs="json",
|
47 |
title="Chinese Pronunciation Checker"
|
48 |
)
|
|
|
42 |
# Create Gradio interface
|
43 |
interface = gr.Interface(
|
44 |
fn=assess_pronunciation,
|
45 |
+
inputs=gr.Audio(type="filepath"), # Corrected input
|
46 |
outputs="json",
|
47 |
title="Chinese Pronunciation Checker"
|
48 |
)
|