lemonaddie
commited on
Commit
•
fe9aabc
1
Parent(s):
42e0eb5
Update app.py
Browse files
app.py
CHANGED
@@ -16,18 +16,18 @@ import spaces
|
|
16 |
def depth_normal(img):
|
17 |
return img, img
|
18 |
|
19 |
-
@spaces.GPU
|
20 |
-
def run_demo_server(pipe):
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
|
33 |
# def process(
|
@@ -293,7 +293,13 @@ def main():
|
|
293 |
|
294 |
pipe = pipe.to(device)
|
295 |
|
296 |
-
run_demo_server(pipe)
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
|
298 |
|
299 |
if __name__ == "__main__":
|
|
|
16 |
def depth_normal(img):
|
17 |
return img, img
|
18 |
|
19 |
+
# @spaces.GPU
|
20 |
+
# def run_demo_server(pipe):
|
21 |
+
# title = "Geowizard"
|
22 |
+
# description = "Gradio demo for Geowizard."
|
23 |
|
24 |
+
# examples = ["files/bee.jpg"]
|
25 |
|
26 |
+
# # gr.Interface(
|
27 |
+
# # depth_normal,
|
28 |
+
# # inputs=[gr.Image(type='pil', label="Original Image")],
|
29 |
+
# # outputs=[gr.Image(type="pil",label="Output Depth"), gr.Image(type="pil",label="Output Normal")],
|
30 |
+
# # title=title, description=description, article='1', examples=examples, analytics_enabled=False).launch()
|
31 |
|
32 |
|
33 |
# def process(
|
|
|
293 |
|
294 |
pipe = pipe.to(device)
|
295 |
|
296 |
+
#run_demo_server(pipe)
|
297 |
+
|
298 |
+
gr.Interface(
|
299 |
+
depth_normal,
|
300 |
+
inputs=[gr.Image(type='pil', label="Original Image")],
|
301 |
+
outputs=[gr.Image(type="pil",label="Output Depth"), gr.Image(type="pil",label="Output Normal")],
|
302 |
+
title=title, description=description, article='1', examples=examples, analytics_enabled=False).launch()
|
303 |
|
304 |
|
305 |
if __name__ == "__main__":
|