Update app.py
Browse files
app.py
CHANGED
@@ -18,15 +18,35 @@ def key_generated():
|
|
18 |
else:
|
19 |
print("Keys have been generated ✅")
|
20 |
return {gen_key_btn: gr.update(value="Keys have been generated ✅")}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
demo = gr.Blocks(css=".markdown-body { font-size: 18px; }")
|
23 |
|
24 |
with demo:
|
25 |
-
with gr.Row():
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
# gr.Markdown(
|
32 |
# f"""
|
|
|
18 |
else:
|
19 |
print("Keys have been generated ✅")
|
20 |
return {gen_key_btn: gr.update(value="Keys have been generated ✅")}
|
21 |
+
|
22 |
+
|
23 |
+
CSS = """
|
24 |
+
#accordion-label { /* Custom styling for the Accordion title */
|
25 |
+
background-color: #f0f0f0 !important; /* Set the background color to gray */
|
26 |
+
}
|
27 |
+
|
28 |
+
#ie_plot_output { /* Target the image output container */
|
29 |
+
align-items: center;
|
30 |
+
justify-content: center;
|
31 |
+
margin: auto; /* Ensure it is centered */
|
32 |
+
}
|
33 |
+
"""
|
34 |
|
35 |
+
demo = gr.Blocks(css=CSS)#".markdown-body { font-size: 18px; }")
|
36 |
|
37 |
with demo:
|
38 |
+
# with gr.Row():
|
39 |
+
# with gr.Column(elem_id="center_column"):
|
40 |
+
# gr.Image("Img/zama.png", width=200, show_label=False)
|
41 |
+
# with gr.Column(elem_id="center_column"):
|
42 |
+
# gr.Image("Img/Epita.png", width=200, show_label=False)
|
43 |
+
gr.Markdown(
|
44 |
+
"""
|
45 |
+
<p align="center">
|
46 |
+
<img width=200 src="https://user-images.githubusercontent.com/5758427/197816413-d9cddad3-ba38-4793-847d-120975e1da11.png">
|
47 |
+
</p>
|
48 |
+
"""
|
49 |
+
)
|
50 |
|
51 |
# gr.Markdown(
|
52 |
# f"""
|