Spaces:
Runtime error
Runtime error
Commit
·
2d016e2
1
Parent(s):
ffbd52c
Refactor PDF file reading in generate_audio function
Browse files
main.py
CHANGED
|
@@ -126,7 +126,7 @@ demo = gr.Interface(
|
|
| 126 |
title="PDF to Podcast",
|
| 127 |
description=description,
|
| 128 |
fn=generate_audio,
|
| 129 |
-
examples=[[p
|
| 130 |
inputs=[
|
| 131 |
gr.File(
|
| 132 |
label="PDF",
|
|
|
|
| 126 |
title="PDF to Podcast",
|
| 127 |
description=description,
|
| 128 |
fn=generate_audio,
|
| 129 |
+
examples=[[str(p)] for p in Path("examples").glob("*.pdf")],
|
| 130 |
inputs=[
|
| 131 |
gr.File(
|
| 132 |
label="PDF",
|