diegulio commited on
Commit
5bda305
·
1 Parent(s): a96ff13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -2,9 +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
- with gr.Tab("Cedula"):
6
- demo = gr.Interface(cedula_get_attributes, "file", "label")
7
- with gr.Tab("Licencia"):
8
- demo = gr.Interface(license_get_attributes, "file", "label")
 
9
 
10
  demo.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
+ demo_cedula = gr.Interface(cedula_get_attributes, "file", "label")
8
+ with gr.Tab("Licencia"):
9
+ demo_licencia = gr.Interface(license_get_attributes, "file", "label")
10
 
11
  demo.launch()