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