You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(env) root@felipe:~/Skin-Cancer# python3 app.py
/root/Skin-Cancer/env/lib/python3.8/site-packages/torchvision/transforms/transforms.py:332: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
warnings.warn(
/root/Skin-Cancer/env/lib/python3.8/site-packages/torchvision/transforms/transforms.py:332: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
warnings.warn(
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
warnings.warn(value)
[['images/akiec.jpg'], ['images/bcc.jpg'], ['images/bkl.jpg'], ['images/df.jpg'], ['images/mel.jpg'], ['images/nv.jpg'], ['images/vasc.jpg']]
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: The 'type' parameter has been deprecated. Use the Number component instead.
warnings.warn(value)
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `allow_screenshot` parameter is deprecated, and it has no effect
warnings.warn(value)
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `capture_session` parameter is deprecated, and it has no effect
warnings.warn(value)
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `show_tips` is deprecated in `Interface()`, please use it within `launch()` instead.
warnings.warn(value)
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `encrypt` is deprecated in `Interface()`, please use it within `launch()` instead.
warnings.warn(value)
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/interface.py:289: UserWarning: Currently, only the 'default' theme is supported.
warnings.warn("Currently, only the 'default' theme is supported.")
/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/interface.py:362: UserWarning: The `allow_flagging` parameter in `Interface` nowtakes a string value ('auto', 'manual', or 'never'), not a boolean. Setting parameter to: 'never'.
warnings.warn(
Running on local URL: http://localhost:7860/
To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/routes.py", line 275, in predict
output = await app.blocks.process_api(body, username, session_state)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/blocks.py", line 274, in process_api
predictions = await run_in_threadpool(block_fn.fn, *processed_input)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/interface.py", line 500, in <lambda>
lambda *args: self.run_prediction(args)[0]
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/gradio/interface.py", line 682, in run_prediction
prediction = predict_fn(*processed_input)
File "app.py", line 35, in predict_image
model = TorchVisionClassifierInference(
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/hugsvision/inference/TorchVisionClassifierInference.py", line 29, in __init__
self.model = torch.load(self.model_path + "best_model.pth", map_location=self.device)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/torch/serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/root/Skin-Cancer/env/lib/python3.8/site-packages/torch/serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
dont show anything passed 500 seconds
how solve this?
The text was updated successfully, but these errors were encountered:
dont show anything passed 500 seconds
how solve this?
The text was updated successfully, but these errors were encountered: