Spaces:
Build error
Build error
Dhruv Diddi
commited on
Commit
•
43994cd
1
Parent(s):
1c1a324
add reqs
Browse files- app.py +9 -4
- requirements.txt +2 -0
app.py
CHANGED
@@ -1,10 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
-
from PIL import Image
|
4 |
|
5 |
-
def
|
6 |
-
|
|
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
9 |
iface.launch()
|
10 |
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
|
|
3 |
|
4 |
+
def super_resolution_image(img):
|
5 |
+
print(img)
|
6 |
+
return img[::-1]
|
7 |
|
8 |
+
image = gr.inputs.Image(shape = (192, 192))
|
9 |
+
label = gr.outputs.Label()
|
10 |
+
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg', 'parrot.jpg' ]
|
11 |
+
|
12 |
+
iface = gr.Interface(fn = super_resolution_image, inputs = image, outputs = label, examples = examples)
|
13 |
iface.launch()
|
14 |
|
15 |
+
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
ISR
|
2 |
+
|