RuntimeError: Share is not supported when you are in Spaces

My project was working fine so far Testspace - a Hugging Face Space by nahidalam

But recently I noticed it is showing this runtime error. Please suggest

2022-03-03 14:48:40.804934: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-03-03 14:48:40.804984: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Running on local URL:  http://localhost:7860/
Traceback (most recent call last):
  File "app.py", line 29, in <module>
    iface.launch(share = True)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 632, in launch
    return super().launch(**args)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/launchable.py", line 145, in launch
    raise RuntimeError("Share is not supported when you are in Spaces")
RuntimeError: Share is not supported when you are in Spaces
1 Like

Hi there!

You have

iface.launch(share = True)

In Spaces, you need to remove the share=True part

1 Like