Spaces:
Build error
Build error
diegulio
commited on
Commit
·
869e95f
1
Parent(s):
360ff7a
fix demo
Browse files- app.py +6 -9
- cedula/app.py +1 -0
app.py
CHANGED
@@ -2,13 +2,10 @@ import gradio as gr
|
|
2 |
from cedula.app import get_attributes as cedula_get_attributes
|
3 |
from license.app import get_attributes as license_get_attributes
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
demo_licencia = gr.Interface(license_get_attributes, "file", "label")
|
11 |
-
|
12 |
-
|
13 |
-
tabbed_interface = gr.Interface([demo_cedula, demo_licencia], title="Tabbed Interface")
|
14 |
-
tabbed_interface.launch()
|
|
|
2 |
from cedula.app import get_attributes as cedula_get_attributes
|
3 |
from license.app import get_attributes as license_get_attributes
|
4 |
|
5 |
+
with gr.Blocks() as demo:
|
6 |
+
with gr.Tab("Cedula"):
|
7 |
+
gr.Interface(cedula_get_attributes, "file", "label")
|
8 |
+
with gr.Tab("Licencia"):
|
9 |
+
gr.Interface(license_get_attributes, "file", "label")
|
10 |
|
11 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cedula/app.py
CHANGED
@@ -139,3 +139,4 @@ def get_attributes(input_img):
|
|
139 |
|
140 |
#demo = gr.Interface(get_attributes, "file", "label")
|
141 |
#demo.launch()
|
|
|
|
139 |
|
140 |
#demo = gr.Interface(get_attributes, "file", "label")
|
141 |
#demo.launch()
|
142 |
+
|