A short tutorial on using pre-trained Huggingface models
Runtime
with an Image
.
We’re going to be defining which packages to install in the runtime, and the hardware this code will run on.
(**inputs)
.
rest_api
decorator to our inference function.
Add the following decorator to your predict_sentiment
function.
app.py
file will look like this:
cd
to the directory you’re
working on.
Then, run the following:
Show Logs