Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ client = InferenceClient(
|
|
| 10 |
api_key=os.environ.get("HF_TOKEN", ""),
|
| 11 |
)
|
| 12 |
|
| 13 |
-
# Page configuration
|
| 14 |
st.set_page_config(
|
| 15 |
page_title="Cloud Image Generator",
|
| 16 |
page_icon="🎨",
|
| 17 |
-
layout="
|
| 18 |
)
|
| 19 |
|
| 20 |
# Custom CSS for better styling
|
|
@@ -37,6 +37,11 @@ st.markdown("""
|
|
| 37 |
.stButton>button:hover {
|
| 38 |
background-color: #FF6B6B;
|
| 39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
</style>
|
| 41 |
""", unsafe_allow_html=True)
|
| 42 |
|
|
|
|
| 10 |
api_key=os.environ.get("HF_TOKEN", ""),
|
| 11 |
)
|
| 12 |
|
| 13 |
+
# Page configuration - using centered layout to fix shaking in wide mode
|
| 14 |
st.set_page_config(
|
| 15 |
page_title="Cloud Image Generator",
|
| 16 |
page_icon="🎨",
|
| 17 |
+
layout="centered"
|
| 18 |
)
|
| 19 |
|
| 20 |
# Custom CSS for better styling
|
|
|
|
| 37 |
.stButton>button:hover {
|
| 38 |
background-color: #FF6B6B;
|
| 39 |
}
|
| 40 |
+
/* Prevent layout shift */
|
| 41 |
+
.block-container {
|
| 42 |
+
padding-top: 2rem;
|
| 43 |
+
padding-bottom: 2rem;
|
| 44 |
+
}
|
| 45 |
</style>
|
| 46 |
""", unsafe_allow_html=True)
|
| 47 |
|