Spaces:
Running
Running
import numpy as np | |
import gradio as gr | |
def funksjon(input_img): | |
#Må inporterer modellen fra API på huggingface.co | |
#imgPred = model.fit(input_img) | |
learn.load('stage-1') | |
predictions = model.predict(img_array) | |
#imgPred = input_img | |
return predictions | |
demo = gr.Interface(funksjon, gr.Image(), "image") | |
#demo.launch(share=True) | |
demo.launch() |