File size: 695 Bytes
2340e8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""pip install gradio-client; replace image paths with your non-sensitive inputs."""
from gradio_client import Client, handle_file

client = Client("SammySnake/BEV")
print(client.predict(api_name="/status"))

# BEV is a feature grid, not an aerial photograph or a coordinate estimate.
# preview, raw_npz, receipt = client.predict(
#     handle_file("ground.jpg"), 60, 0, 0, "cpu", api_name="/bev"
# )
# vector_json, raw_npz = client.predict(
#     handle_file("ground.jpg"), "ground", "cpu", api_name="/embed"
# )
# ranking_json, raw_npz = client.predict(
#     handle_file("ground.jpg"),
#     [handle_file("candidate-1.jpg"), handle_file("candidate-2.jpg")],
#     "cpu", api_name="/rank"
# )