Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def funksjon(input_img):
|
| 6 |
+
|
| 7 |
+
#Må inporterer modellen fra API på huggingface.co
|
| 8 |
+
|
| 9 |
+
#imgPred = model.fit(input_img)
|
| 10 |
+
imgPred = input_img
|
| 11 |
+
return imgPred
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
demo = gr.Interface(funksjon, gr.Image(), "image")
|
| 15 |
+
#demo.launch(share=True)
|
| 16 |
+
demo.launch()
|