Unkown Type Error in Space
Hi There,I made a Space a while ago (Transformers Can Do Bayesian Inference - a Hugging Face Space by samuelinferences). It was great and worked well. Then, suddenly it did not work anymore. I did not change a thing in the mean time.The error, I get isRunning on local URL:  http://localhost:7860/

To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/gradio/routes.py", line 269, in predict
    output = await run_in_threadpool(app.launchable.process_api, body, username)
  File "/home/user/.local/lib/python3.8/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 28, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
  File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 818, in run_sync_in_worker_thread
    return await future
  File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 754, in run
    result = context.run(func, *args)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 573, in process_api
    prediction, durations = self.process(raw_input)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 618, in process
    processed_output = [
  File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 619, in <listcomp>
    output_component.postprocess(predictions[i])
  File "/home/user/.local/lib/python3.8/site-packages/gradio/outputs.py", line 908, in postprocess
    raise ValueError(
ValueError: Unknown type. Please choose from: 'plotly', 'matplotlib', 'bokeh'.I don’t understand this error and think it is internal actually. I tried to fix the gradio version to the version likely used back then, but that did not help either. Any ideas? Can’t find this in the current codebase of gradio either.
2022-04-28T13:44:15Z
Hello and welcome to our ForumGradio has recently added support for different plotting libraries. You should define the plot as:plot = gr.outputs.Plot(type="bokeh")(or pickPlotlyorMatplotlib) and pass it to the inferface
2022-04-28T14:10:08Z
FYI we now also automatically set thesdk_versionin theREADME.mdto pin a version of Gradio. You might want to add it as well. Here is an exampleREADME.md · ysharma/text-to-ner-to-image-to-video at main
2022-04-28T14:14:07Z
Thank You!  This fixed it
2022-04-28T14:14:49Z
That would be good to do, do you know where to find the version currently used by a space?
2022-05-01T09:28:55Z
If it’s not specified, you are using the latestgradioversion which is 2.9.4 if I recall correctly.
2022-08-31T05:11:42Z
The sdk version in my README.md (README.md · mikeee/radio-embed at mainsdk: gradiosdk_version: 3.0.17) is fixed yet I got errors suddenly for reasons unknown.It worked previously and I didn’t change anything. Now it simply does not work. I triedRestartandFactory reboot. It did not help. The log shows something like:ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
...I testedthe whole thing locally. It ran without a problem.Please help me fix it or give me some pointers on how to fix it. (Some of my other spaces got similar problems.)Thanks a lot.