Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,22 +1,20 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
-
|
| 5 |
-
|
|
|
|
| 6 |
height: 100%;
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
display: flex;
|
|
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: center;
|
| 11 |
-
flex-direction: column;
|
| 12 |
-
padding-top: 80px; /* chống đụng phần header Hugging Face */
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
#main-area h2 {
|
| 16 |
color: white;
|
| 17 |
-
margin-bottom: 20px;
|
| 18 |
}
|
| 19 |
-
|
| 20 |
.button-link {
|
| 21 |
background-color: #007bff;
|
| 22 |
color: white;
|
|
@@ -24,13 +22,14 @@ css = """
|
|
| 24 |
text-decoration: none;
|
| 25 |
border-radius: 6px;
|
| 26 |
font-size: 16px;
|
|
|
|
| 27 |
}
|
| 28 |
"""
|
| 29 |
|
| 30 |
with gr.Blocks(css=css) as app:
|
| 31 |
gr.HTML("""
|
| 32 |
<div id="main-area">
|
| 33 |
-
<
|
| 34 |
<a class="button-link" href="https://optionstrat.com/flow" target="_blank" rel="noopener noreferrer">
|
| 35 |
Truy cập Option Flow
|
| 36 |
</a>
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
css = """
|
| 4 |
+
body, html {
|
| 5 |
+
margin: 0;
|
| 6 |
+
padding: 0;
|
| 7 |
height: 100%;
|
| 8 |
+
background-color: #111;
|
| 9 |
+
}
|
| 10 |
+
#main-area {
|
| 11 |
+
height: 100vh;
|
| 12 |
display: flex;
|
| 13 |
+
flex-direction: column;
|
| 14 |
justify-content: center;
|
| 15 |
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
color: white;
|
|
|
|
| 17 |
}
|
|
|
|
| 18 |
.button-link {
|
| 19 |
background-color: #007bff;
|
| 20 |
color: white;
|
|
|
|
| 22 |
text-decoration: none;
|
| 23 |
border-radius: 6px;
|
| 24 |
font-size: 16px;
|
| 25 |
+
margin-top: 20px;
|
| 26 |
}
|
| 27 |
"""
|
| 28 |
|
| 29 |
with gr.Blocks(css=css) as app:
|
| 30 |
gr.HTML("""
|
| 31 |
<div id="main-area">
|
| 32 |
+
<h1 style="margin-bottom: 10px;">OptionStrat Flow</h1>
|
| 33 |
<a class="button-link" href="https://optionstrat.com/flow" target="_blank" rel="noopener noreferrer">
|
| 34 |
Truy cập Option Flow
|
| 35 |
</a>
|