Glainez commited on
Commit
05b334a
·
1 Parent(s): 36c3453

image constraints also in mobile

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. descriptions.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ with (gr.Blocks(head=prefer_frontal_cam_html, css=css_image_aspect_ratio) as blo
115
  gr.Markdown(""" * Do you have any doubt? Please, see the documentation tab. \n
116
  * Tens un dubte? Consulta la pestanya de documentació. """)
117
 
118
- # logout_button.click(fn=lambda: config.clear())
119
 
120
  with gr.Tab(label='📷 Capture', id=1):
121
  # MAIN TAB TO PREDICT
@@ -153,8 +153,6 @@ with (gr.Blocks(head=prefer_frontal_cam_html, css=css_image_aspect_ratio) as blo
153
  b = gr.Button('PRESS TO PREDICT')
154
  b.click(fn=predict_app, inputs=[im], outputs=gr.Info()) # add eater id to input if needed
155
 
156
- logout_button = gr.Button(link='/logout', value='Logout / Exit ↩', size='sm')
157
-
158
  with gr.Tab(label='ℹ️ Status', id=2):
159
  gr.Markdown(' Press the button to see the status of the Application and technical information')
160
  load_status_button = gr.Button('Load Status')
 
115
  gr.Markdown(""" * Do you have any doubt? Please, see the documentation tab. \n
116
  * Tens un dubte? Consulta la pestanya de documentació. """)
117
 
118
+ logout_button = gr.Button(link='/logout', value='Logout / Exit ↩', size='sm')
119
 
120
  with gr.Tab(label='📷 Capture', id=1):
121
  # MAIN TAB TO PREDICT
 
153
  b = gr.Button('PRESS TO PREDICT')
154
  b.click(fn=predict_app, inputs=[im], outputs=gr.Info()) # add eater id to input if needed
155
 
 
 
156
  with gr.Tab(label='ℹ️ Status', id=2):
157
  gr.Markdown(' Press the button to see the status of the Application and technical information')
158
  load_status_button = gr.Button('Load Status')
descriptions.py CHANGED
@@ -181,7 +181,7 @@ Gràcies per utilitzar la nostra aplicació! Esperem que aquesta guia t'ajudi a
181
  css_image_aspect_ratio = """
182
  #image-container {
183
  position: relative;
184
- width: min(1280px, 100%);
185
  height: 100% !important;
186
  border-style: dashed;
187
  overflow: hidden;
 
181
  css_image_aspect_ratio = """
182
  #image-container {
183
  position: relative;
184
+ width: 100%;
185
  height: 100% !important;
186
  border-style: dashed;
187
  overflow: hidden;