Spaces:
Runtime error
Runtime error
File size: 285 Bytes
2de3774 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from gradio_client import Client
base_url = "http://localhost:7860"
search=""
max_results=25
client = Client(base_url)
result = client.predict(
text=f"max:{max_results} {search}",
api_name="/search"
)
for image in result:
print(f"{base_url}/gradio_api/file/{image}")
|