Spaces:
Runtime error
Runtime error
error when run in ubuntu 20
#1
by
johnfelipe2012
- opened
sudo su
cd
apt install python3-pip
pip install gradio
git clone https://huggingface.co/spaces/akhaliq/brain_segmentation
cd brain_segmentation/
pip install -r requirements.txt
nano app.py
##
io.launch(server_name="0.0.0.0")
server_name="0.0.0.0"
##
python3 app.py
and show this error in command prompt
Using cache found in /root/.cache/torch/hub/mateuszbuda_brain-segmentation-pytorch_master
Downloading: "https://github.com/mateuszbuda/brain-segmentation-pytorch/releases/download/v1.0/unet-e012d006.pt" to /root/.cache/torch/hub/checkpoints/unet-e012d006.pt
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/gradio/routes.py", line 275, in predict
output = await app.blocks.process_api(body, username, session_state)
File "/usr/local/lib/python3.8/dist-packages/gradio/blocks.py", line 274, in process_api
predictions = await run_in_threadpool(block_fn.fn, *processed_input)
File "/usr/local/lib/python3.8/dist-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.8/dist-packages/gradio/interface.py", line 500, in <lambda>
lambda *args: self.run_prediction(args)[0]
File "/usr/local/lib/python3.8/dist-packages/gradio/interface.py", line 682, in run_prediction
prediction = predict_fn(*processed_input)
File "app.py", line 42, in inference
for patches_batch in tqdm(patch_loader):
File "/usr/local/lib/python3.8/dist-packages/tqdm/notebook.py", line 242, in __init__
self.container = self.status_printer(self.fp, total, self.desc, self.ncols)
File "/usr/local/lib/python3.8/dist-packages/tqdm/notebook.py", line 118, in status_printer
raise ImportError(WARN_NOIPYW)
ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html