gradio_client API Error

#9
by spark12x - opened

AppError: The upstream Gradio app has raised an exception: total images must be the same as the number of image tags, got 0 image tags and 3 images)

AppError Traceback (most recent call last)
in <cell line: 28>()
26
27 client = Client("spark12x/OmniGen", hf_token="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")
---> 28 result = client.predict(
29 text="Hello!!",
30 img1=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),

6 frames
/usr/local/lib/python3.10/dist-packages/gradio_client/client.py in _predict(*data)
1247 )
1248 else:
-> 1249 raise AppError(
1250 "The upstream Gradio app has raised an exception: "
1251 + result["error"]

AppError: The upstream Gradio app has raised an exception: total images must be the same as the number of image tags, got 0 image tags and 3 images

Sign up or log in to comment