hf-gradio-example / request.py
JulienHalgand's picture
GPU support
162bd64
raw
history blame contribute delete
286 Bytes
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)