Spaces:
Runtime error
Runtime error
dron3flyv3r
commited on
Commit
·
dcbfa6b
1
Parent(s):
6d1b7ca
Update audio file input type to accept file paths
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def control(audio_file, text: str, bullet_points: int, conclusion: bool) -> str:
|
|
45 |
iface = gr.Interface(
|
46 |
fn=control,
|
47 |
inputs=[
|
48 |
-
gr.components.Audio(label="Audio file"),
|
49 |
gr.components.Textbox(lines=5, label="Text"),
|
50 |
gr.components.Slider(
|
51 |
minimum=1, maximum=10, value=5, step=1, label="Number of bullet points"
|
|
|
45 |
iface = gr.Interface(
|
46 |
fn=control,
|
47 |
inputs=[
|
48 |
+
gr.components.Audio(label="Audio file", type="filepath"),
|
49 |
gr.components.Textbox(lines=5, label="Text"),
|
50 |
gr.components.Slider(
|
51 |
minimum=1, maximum=10, value=5, step=1, label="Number of bullet points"
|