Spaces:
Sleeping
Sleeping
fixed ratio of image
Browse files
app.py
CHANGED
@@ -75,6 +75,7 @@ def start_app(shift_id, mode):
|
|
75 |
|
76 |
|
77 |
def predict_app(image, patient_id):
|
|
|
78 |
buffered = BytesIO()
|
79 |
image.save(buffered, format='JPEG')
|
80 |
b64image = base64.b64encode(buffered.getvalue()).decode('utf-8')
|
@@ -110,7 +111,8 @@ with gr.Blocks(head=prefer_frontal_cam_html) as block:
|
|
110 |
gr.Markdown(f""" 1. Click to Access Webcam
|
111 |
2.
|
112 |
""")
|
113 |
-
im = gr.Image(sources=['webcam'], streaming=True, mirror_webcam=False, type='pil'
|
|
|
114 |
with gr.Accordion():
|
115 |
eater_id = gr.Textbox(label='Patient Identification', placeholder='Searching Patient ID')
|
116 |
|
|
|
75 |
|
76 |
|
77 |
def predict_app(image, patient_id):
|
78 |
+
gr.Info('Predicting ...')
|
79 |
buffered = BytesIO()
|
80 |
image.save(buffered, format='JPEG')
|
81 |
b64image = base64.b64encode(buffered.getvalue()).decode('utf-8')
|
|
|
111 |
gr.Markdown(f""" 1. Click to Access Webcam
|
112 |
2.
|
113 |
""")
|
114 |
+
im = gr.Image(sources=['webcam'], streaming=True, mirror_webcam=False, type='pil',
|
115 |
+
height=720, width=1280)
|
116 |
with gr.Accordion():
|
117 |
eater_id = gr.Textbox(label='Patient Identification', placeholder='Searching Patient ID')
|
118 |
|