acecalisto3 commited on
Commit
46c1159
·
verified ·
1 Parent(s): b7685a5

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +4 -9
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
- interface = create_interface()
454
- interface.launch(
455
- server_name="0.0.0.0",
456
- server_port=8000,
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()