Spaces:
Sleeping
Sleeping
deactivate barcode scanning for now
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from pyzbar.pyzbar import decode
|
3 |
from lambdas import upload_models, predict
|
4 |
import base64
|
5 |
from io import BytesIO, StringIO
|
@@ -133,7 +133,7 @@ with (gr.Blocks(head=prefer_frontal_cam_html) as block):
|
|
133 |
|
134 |
@gr.on(inputs=im, outputs=eater_id)
|
135 |
def search_eater_id(image):
|
136 |
-
d = decode(image)
|
137 |
default_value = None
|
138 |
current_value = current_eater_id['value'] or default_value
|
139 |
new_value = d[0].data if d else default_value
|
@@ -154,7 +154,7 @@ with (gr.Blocks(head=prefer_frontal_cam_html) as block):
|
|
154 |
|
155 |
with gr.Tab(label='π Documentation', id=3):
|
156 |
choices = [('ENG π¬π§', docu_eng), ('CAT', docu_cat)]
|
157 |
-
c = gr.
|
158 |
|
159 |
@gr.render()
|
160 |
def display_docu():
|
|
|
1 |
import gradio as gr
|
2 |
+
#from pyzbar.pyzbar import decode
|
3 |
from lambdas import upload_models, predict
|
4 |
import base64
|
5 |
from io import BytesIO, StringIO
|
|
|
133 |
|
134 |
@gr.on(inputs=im, outputs=eater_id)
|
135 |
def search_eater_id(image):
|
136 |
+
d = []#decode(image)
|
137 |
default_value = None
|
138 |
current_value = current_eater_id['value'] or default_value
|
139 |
new_value = d[0].data if d else default_value
|
|
|
154 |
|
155 |
with gr.Tab(label='π Documentation', id=3):
|
156 |
choices = [('ENG π¬π§', docu_eng), ('CAT', docu_cat)]
|
157 |
+
c = gr.Radio(label='Select the language', choices=choices)
|
158 |
|
159 |
@gr.render()
|
160 |
def display_docu():
|