Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,19 +56,6 @@ def create_gradio_interface():
|
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown("## QR Code Generator and Decoder")
|
58 |
|
59 |
-
# Add the logo at the bottom center
|
60 |
-
demo.append(gr.HTML("""
|
61 |
-
<div style="
|
62 |
-
position: fixed;
|
63 |
-
bottom: 20px;
|
64 |
-
left: 50%;
|
65 |
-
transform: translateX(-50%);
|
66 |
-
z-index: 1000;
|
67 |
-
">
|
68 |
-
<img src="file/space_logo.png" alt="Space Logo" style="width: 150px; height: auto;">
|
69 |
-
</div>
|
70 |
-
"""))
|
71 |
-
|
72 |
# Tab for generating QR codes
|
73 |
with gr.Tab("Generate QR Code"):
|
74 |
with gr.Row():
|
@@ -113,8 +100,21 @@ def create_gradio_interface():
|
|
113 |
outputs=decoded_text,
|
114 |
)
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
demo.launch(share=True)
|
117 |
|
118 |
|
119 |
# Run the Gradio interface
|
120 |
-
create_gradio_interface()
|
|
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown("## QR Code Generator and Decoder")
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
# Tab for generating QR codes
|
60 |
with gr.Tab("Generate QR Code"):
|
61 |
with gr.Row():
|
|
|
100 |
outputs=decoded_text,
|
101 |
)
|
102 |
|
103 |
+
# Add the logo at the bottom center using gr.HTML
|
104 |
+
gr.HTML("""
|
105 |
+
<div style="
|
106 |
+
position: fixed;
|
107 |
+
bottom: 20px;
|
108 |
+
left: 50%;
|
109 |
+
transform: translateX(-50%);
|
110 |
+
z-index: 1000;
|
111 |
+
">
|
112 |
+
<img src="file/space-logo.png" alt="Space Logo" style="width: 150px; height: auto;">
|
113 |
+
</div>
|
114 |
+
""")
|
115 |
+
|
116 |
demo.launch(share=True)
|
117 |
|
118 |
|
119 |
# Run the Gradio interface
|
120 |
+
create_gradio_interface()
|