Spaces:
Build error
Build error
File size: 355 Bytes
50b56bf 7348cfe 50b56bf 7348cfe 50b56bf 7348cfe 0f9d7e1 50b56bf a2f6ce6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
from gradio_pdf import PDF
from pathlib import Path
current_dir = Path(__file__).parent
demo = gr.Interface(lambda x: x,
PDF(),
gr.File(),
examples=[[str(current_dir / "contract.pdf")]],
api_name="predict")
if __name__ == "__main__":
demo.launch()
|