image constraints also in mobile
Browse files- app.py +1 -3
- 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 |
-
|
| 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:
|
| 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;
|