File size: 254 Bytes
8b73048
 
c2ff93d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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