acecalisto3 commited on
Commit
9260170
·
verified ·
1 Parent(s): a6d1440

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -247,7 +247,7 @@ def generate_qr(json_data):
247
  return qr_path
248
  return None
249
 
250
- def create_interface():
251
  css = """
252
  .container { max-width: 1200px; margin: auto; }
253
  .warning { background-color: #fff3cd; color: #856404; }
@@ -349,8 +349,8 @@ def create_interface():
349
 
350
  def main():
351
  mimetypes.init()
352
- interface = create_interface()
353
- interface.launch(
354
  server_name="0.0.0.0",
355
  server_port=7860,
356
  show_error=True,
 
247
  return qr_path
248
  return None
249
 
250
+ def create_iface():
251
  css = """
252
  .container { max-width: 1200px; margin: auto; }
253
  .warning { background-color: #fff3cd; color: #856404; }
 
349
 
350
  def main():
351
  mimetypes.init()
352
+ interface = create_iface()
353
+ iface.launch(
354
  server_name="0.0.0.0",
355
  server_port=7860,
356
  show_error=True,