File size: 286 Bytes
b538a96
 
 
162bd64
b538a96
 
 
 
 
1
2
3
4
5
6
7
8
9
from gradio_client import Client, handle_file

client = Client("http://127.0.0.1:7860/")
#client = Client("JulienHalgand/hf-gradio-example")
result = client.predict(
		file_path=handle_file('/home/julien/Downloads/La Marseillaise_1st_couplet.mp3'),
		api_name="/predict"
)
print(result)