Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
258 views
in Technique[技术] by (71.8m points)

python - Exception: MissingSchema with Gradio Library

I'm using the gradio library with one of the basic examples, but am getting this error. I am running this in a Google Colab Notebook. Here is the relevant lines of code:

fare = gr.inputs.Slider(minimum=0, maximum=1000, default=100, label="Fare (british pounds)")
gr.Interface(predict_survival, [sex, age, fare], "label", live=True).launch();

The error is:

MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
question from:https://stackoverflow.com/questions/65911420/exception-missingschema-with-gradio-library

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This error happens with older versions of Gradio. Please force upgrade to the latest version of Gradio (sometimes colab doesn't do this automatically):

pip install gradio --upgrade


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...