Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,23 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
body {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
.
|
| 7 |
display: flex;
|
| 8 |
-
flex-direction: column;
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
|
|
|
| 11 |
height: 100vh;
|
| 12 |
text-align: center;
|
| 13 |
}
|
| 14 |
|
| 15 |
-
|
| 16 |
display: inline-block;
|
| 17 |
padding: 12px 24px;
|
| 18 |
background-color: #007bff;
|
|
@@ -20,16 +25,18 @@ a.button-link {
|
|
| 20 |
border-radius: 6px;
|
| 21 |
text-decoration: none;
|
| 22 |
font-size: 16px;
|
| 23 |
-
margin-top:
|
| 24 |
}
|
| 25 |
-
"""
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
|
| 35 |
app.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
custom_css = """
|
| 4 |
+
body {
|
| 5 |
+
background-color: #111;
|
| 6 |
+
color: white;
|
| 7 |
+
margin: 0;
|
| 8 |
+
padding: 0;
|
| 9 |
+
}
|
| 10 |
|
| 11 |
+
.center-container {
|
| 12 |
display: flex;
|
|
|
|
| 13 |
justify-content: center;
|
| 14 |
align-items: center;
|
| 15 |
+
flex-direction: column;
|
| 16 |
height: 100vh;
|
| 17 |
text-align: center;
|
| 18 |
}
|
| 19 |
|
| 20 |
+
.button-link {
|
| 21 |
display: inline-block;
|
| 22 |
padding: 12px 24px;
|
| 23 |
background-color: #007bff;
|
|
|
|
| 25 |
border-radius: 6px;
|
| 26 |
text-decoration: none;
|
| 27 |
font-size: 16px;
|
| 28 |
+
margin-top: 16px;
|
| 29 |
}
|
| 30 |
+
"""
|
| 31 |
+
|
| 32 |
+
with gr.Blocks(css=custom_css) as app:
|
| 33 |
+
gr.HTML("""
|
| 34 |
+
<div class="center-container">
|
| 35 |
+
<h2>OptionStrat Flow</h2>
|
| 36 |
+
<a class="button-link" href="https://optionstrat.com/flow" target="_blank">
|
| 37 |
+
Truy cập Option Flow
|
| 38 |
+
</a>
|
| 39 |
+
</div>
|
| 40 |
+
""")
|
| 41 |
|
| 42 |
app.launch()
|