enabled verbose error reporting in gradio api

#7
by shortcipher - opened

I get gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().

How do I set show_error=True in my code?

from gradio_client import Client, handle_file
client = Client("zhyever/PatchFusion")
result = client.predict(
image=handle_file(r"D:\My Pictures\Nikon D90\DCIM\101NCD90\DSC_1146.JPG"),
mode="r",
patch_number=256,
resolution_h=2160,
resolution_w=3840,
patch_split_number_h=6,
patch_split_number_w=6,
color_map="turbo_r",
api_name="/on_submit"
)

While I'm not sure, there is one line of code from my repo side: demo.queue().launch(share=True)
It might be here that the AppError asks you to add show_error = True.
Please check the app.py file line 244.

But there is no demo.queue().launch(share=True) in my api code.

Also, after getting one of these errors after setting the client.predict() parameters to some possibly too extreme values, I keep getting the errors after resetting the client.predict() parameters to values which have worked before.

Yes it is here that the AppError asks you to add show_error = True in the app.py file line 244.
But I can't modify app.py, it's on your side...

Sign up or log in to comment