Spaces:
Paused
Paused
Abid
commited on
Commit
·
0ecdec8
1
Parent(s):
8af355a
added more features to app
Browse files- app/app_savta.py +4 -4
- examples/favicon.png +0 -0
app/app_savta.py
CHANGED
@@ -3,14 +3,14 @@ import numpy as np
|
|
3 |
import gradio as gr
|
4 |
|
5 |
title = "SavtaDepth WebApp"
|
6 |
-
description = "
|
7 |
article = "<p style='text-align: center'><a href='https://dagshub.com/OperationSavta/SavtaDepth' target='_blank'>SavtaDepth Project from OperationSavta</a></p><p style='text-align: center'><a href='https://colab.research.google.com/drive/1XU4DgQ217_hUMU1dllppeQNw3pTRlHy1?usp=sharing' target='_blank'>Google Colab Demo</a></p></center></p>"
|
8 |
|
9 |
examples = [
|
10 |
["examples/00008.jpg"],
|
11 |
["examples/00045.jpg"],
|
12 |
]
|
13 |
-
|
14 |
|
15 |
def sepia(input_img):
|
16 |
sepia_filter = np.array(
|
@@ -21,6 +21,6 @@ def sepia(input_img):
|
|
21 |
return sepia_img
|
22 |
|
23 |
|
24 |
-
iface = gr.Interface(sepia, gr.inputs.Image(shape=(200, 200)), "image", title = title, description = description, article = article, examples = examples)
|
25 |
|
26 |
-
iface.launch(
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
title = "SavtaDepth WebApp"
|
6 |
+
description = "Savta Depth is a collaborative Open Source Data Science project for monocular depth estimation - Turn 2d photos into 3d photos. To test the model and code please check out the link bellow."
|
7 |
article = "<p style='text-align: center'><a href='https://dagshub.com/OperationSavta/SavtaDepth' target='_blank'>SavtaDepth Project from OperationSavta</a></p><p style='text-align: center'><a href='https://colab.research.google.com/drive/1XU4DgQ217_hUMU1dllppeQNw3pTRlHy1?usp=sharing' target='_blank'>Google Colab Demo</a></p></center></p>"
|
8 |
|
9 |
examples = [
|
10 |
["examples/00008.jpg"],
|
11 |
["examples/00045.jpg"],
|
12 |
]
|
13 |
+
favicon = "examples/favicon.png"
|
14 |
|
15 |
def sepia(input_img):
|
16 |
sepia_filter = np.array(
|
|
|
21 |
return sepia_img
|
22 |
|
23 |
|
24 |
+
iface = gr.Interface(sepia, gr.inputs.Image(shape=(200, 200)), "image", title = title, description = description, article = article, examples = examples, favicon_path=favicon)
|
25 |
|
26 |
+
iface.launch(auth=("admin", "pass1234")) # enable_queue=True
|
examples/favicon.png
ADDED
![]() |