Spaces:
Runtime error
Runtime error
mehdirabiee commited on
Commit ·
e7bf12f
1
Parent(s): 3165716
samples
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ demo = gr.Interface(
|
|
| 15 |
fn=parse_resume,
|
| 16 |
inputs=[PDF(label="Upload a PDF", interactive=True)],
|
| 17 |
outputs=[gr.JSON()],
|
| 18 |
-
examples=[[f"samples
|
| 19 |
)
|
| 20 |
|
| 21 |
demo.launch()
|
|
|
|
| 15 |
fn=parse_resume,
|
| 16 |
inputs=[PDF(label="Upload a PDF", interactive=True)],
|
| 17 |
outputs=[gr.JSON()],
|
| 18 |
+
examples=[[f"samples/{fname}"] for fname in os.listdir("samples") if fname.endswith(".pdf")]
|
| 19 |
)
|
| 20 |
|
| 21 |
demo.launch()
|