diegulio commited on
Commit
21aed0f
·
1 Parent(s): bcae428
Files changed (3) hide show
  1. app.py +4 -4
  2. cedula/app.py +8 -0
  3. license/app.py +9 -0
app.py CHANGED
@@ -1,11 +1,11 @@
1
  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.Blocks() as demo:
6
  with gr.Tab("Cedula"):
7
- gr.Interface(cedula_get_attributes, "image", "label")
8
  with gr.Tab("Licencia"):
9
- gr.Interface(license_get_attributes, "image", "label")
10
 
11
  demo.launch()
 
1
  import gradio as gr
2
+ from cedula.app import create_model as create_cedula_model
3
+ from license.app import create_model as create_license_model
4
 
5
  with gr.Blocks() as demo:
6
  with gr.Tab("Cedula"):
7
+ create_cedula_model()
8
  with gr.Tab("Licencia"):
9
+ create_license_model()
10
 
11
  demo.launch()
cedula/app.py CHANGED
@@ -140,3 +140,11 @@ def get_attributes(input_img):
140
  #demo = gr.Interface(get_attributes, "file", "label")
141
  #demo.launch()
142
 
 
 
 
 
 
 
 
 
 
140
  #demo = gr.Interface(get_attributes, "file", "label")
141
  #demo.launch()
142
 
143
+ def create_model():
144
+ demo = gr.Interface(get_attributes, "file", "label")
145
+ return demo
146
+
147
+
148
+ if __name__ == '__main__':
149
+ demo = create_model()
150
+ demo.launch()
license/app.py CHANGED
@@ -139,3 +139,12 @@ 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
+
143
+ def create_model():
144
+ demo = gr.Interface(get_attributes, "file", "label")
145
+ return demo
146
+
147
+
148
+ if __name__ == '__main__':
149
+ demo = create_model()
150
+ demo.launch()