Using Gradio API

#6
by fradeai - opened

from gradio_client import Client,file

client = Client("merve/llava-next")
result = client.predict(
{"text":"Define the object with one word","files":file("1.png")}, # Dict(text: str | None, files: List[filepath] | None) in 'Message' Multimodaltextbox component
api_name="/chat"
)
print(result)

raise ValueError(result["error"])
ValueError: None

Sign up or log in to comment