Gradio . RuntimeError: main thread is not in main loop
Running on local URL:http://127.0.0.1:7860/To create a public link, set share=True in launch().Traceback (most recent call last):File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/gradio/queueing.py”, line 527, in processeventsresponse = await routeutils.callprocessapi(File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/gradio/route_utils.py”, line 269, in call_process_apiwith utils.MatplotlibBackendMananger():File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/gradio/utils.py”, line 980, in __entermatplotlib.use(“agg”)File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/matplotlib/__init.py”, line 1249, in useplt.switch_backend(name)File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/matplotlib/pyplot.py”, line 433, in switch_backendclose(“all”)File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/matplotlib/pyplot.py”, line 1070, in close_pylab_helpers.Gcf.destroy_all()File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/matplotlib/_pylab_helpers.py”, line 82, in destroy_allmanager.destroy()File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/site-packages/matplotlib/backends/_backend_tk.py”, line 565, in destroyself.canvas._tkcanvas.after_cancel(self.canvas.idledraw_id)File “/home/gokul/miniconda3/envs/ARM/lib/python3.10/tkinter/__init.py”, line 871, in after_canceldata = self.tk.call(‘after’, ‘info’, id)RuntimeError: main thread is not in main loop