pdf_upload / client_api.py
Richard Hsu
push
1c82768
raw
history blame contribute delete
311 Bytes
from gradio_client import Client
client = Client("http://127.0.0.1:7860/")
result = client.predict(
"https://drive.google.com/file/d/1G-R-np4IhSe47r-OgNIu1IBxYzYKFOfk/view?usp=drive_link", # str (filepath on your computer (or URL) of file) in 'Upload PDF' File component
api_name="/predict"
)
print(result)