simplytaps commited on
Commit
d5264ee
·
verified ·
1 Parent(s): d9c2030

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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="wide"
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