Richard Hsu commited on
Commit
1c82768
·
1 Parent(s): 24e3d97
__pycache__/gradio_client.cpython-312.pyc ADDED
Binary file (469 Bytes). View file
 
client_api.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from gradio_client import Client
2
+
3
+ client = Client("http://127.0.0.1:7860/")
4
+ result = client.predict(
5
+ "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
6
+ api_name="/predict"
7
+ )
8
+ print(result)