API error

#10
by talalif - opened

Attempting to use the API as described in the API area. Receiving the following error even when inputting a dictionary in the indicated format,

"AppError: The upstream Gradio app has raised an exception: MultimodalTextbox expects a dictionary with optional keys 'text' and 'files'. Received str"

If I use message = dict(text=text, files=[{"path":picture}]) as the input, where picture is a file path, the API seems to accept it but I get:

AppError: The upstream Gradio app has raised an exception: File /content/output0.png is not in the upload folder and cannot be accessed.

Sign up or log in to comment