Hello,
Just for reference, I am not a computer scientist by any means so I really dont know what I am talking about, but I do use python for work (basically all in anaconda). I am at around 46:15 in the video, the point where Jeremy creates a simple interface, then hits ‘launch’ on his jupyter notebook. It looks like he is working in a locally hosted notebook. I am working in google colab. Everything in my model works, and it is classifying appropriately. The .jpg files and the .pkl file are hosted presumably in google drive (tbh I am still struggling to understand how to navitage drives, where exactly everything needs to be saved) When I run this code block in the google colab notebook:
#/export
image = gr.inputs.Image(shape=(192,192))
label = gr.outputs.Label()
examples = [‘dog.jpg’, ‘cat.jpg’, ‘fox.jpg’]
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
intf.launch(inline=False)
I get this message, and nothing happens, i.e. no Gradio interface opens:
I understand the first half, basically gradio got updates and the old methods are being phased out. The second half, though, I don’t know what it means. Do I have to run this notebook locally? Could I run this as a .py file in VScode, with the .pkl and images in my working directory? I could open a jupyter notebook locally through anaconda, should I do that instead?
I am really stumped by this and tbh kind of frustrated. Why do the book and the video do all of this such different ways? I set up VScode, wsl2 Ubuntu, and kaggle, for what reason? tbh I would prefer to just learn one way that works, and branch out from there as necessary.