File size: 378 Bytes
a4c2fe3
 
 
 
 
 
 
 
 
908e5dc
 
 
 
 
a4c2fe3
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()