Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -450,15 +450,10 @@ def create_interface():
|
|
450 |
def main():
|
451 |
mimetypes.init()
|
452 |
Path('output/qr_codes').mkdir(parents=True, exist_ok=True)
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
show_error=True,
|
458 |
-
share=False,
|
459 |
-
inbrowser=True,
|
460 |
-
debug=True
|
461 |
-
)
|
462 |
|
463 |
if __name__ == "__main__":
|
464 |
main()
|
|
|
450 |
def main():
|
451 |
mimetypes.init()
|
452 |
Path('output/qr_codes').mkdir(parents=True, exist_ok=True)
|
453 |
+
|
454 |
+
iface = gr.Interface(fn=decode_qr, inputs="image", outputs="text")
|
455 |
+
iface.launch()
|
456 |
+
|
|
|
|
|
|
|
|
|
|
|
457 |
|
458 |
if __name__ == "__main__":
|
459 |
main()
|