Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,4 +7,10 @@ for uploaded_file in uploaded_files:
|
|
7 |
bytes_data = uploaded_file.read()
|
8 |
st.write("filename:", uploaded_file.name)
|
9 |
st.write(bytes_data)
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
bytes_data = uploaded_file.read()
|
8 |
st.write("filename:", uploaded_file.name)
|
9 |
st.write(bytes_data)
|
10 |
+
|
11 |
+
from qrtools import QR
|
12 |
+
my_QR = QR(filename = uploaded_files)
|
13 |
+
# decodes the QR code and returns True if successful
|
14 |
+
my_QR.decode()
|
15 |
+
# prints the data
|
16 |
+
st.write(my_QR.data)
|