from gradio_client import Client, handle_file | |
def procesa_dni(image): | |
print(image) | |
client = Client("Moibe/api_rapicash") | |
result = client.predict( | |
img=handle_file('dnid.png'), | |
lang="en", | |
api_name="/predict" | |
) | |
print(result) | |
return result |
from gradio_client import Client, handle_file | |
def procesa_dni(image): | |
print(image) | |
client = Client("Moibe/api_rapicash") | |
result = client.predict( | |
img=handle_file('dnid.png'), | |
lang="en", | |
api_name="/predict" | |
) | |
print(result) | |
return result |