JatinkInnovision commited on
Commit
5414557
·
verified ·
1 Parent(s): 9ee9362

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -11,7 +11,7 @@ is_comfit_alive = False
11
  clean_link = "comfit-copilot.mch250095.projects.jetstream-cloud.org:3000"
12
  full_url = f"http://{clean_link}"
13
 
14
- # Styled HTML for a flashing green block with black text
15
  GREEN_FLASHING_LINK = f"""
16
  <style>
17
  @keyframes flash {{
@@ -30,7 +30,7 @@ GREEN_FLASHING_LINK = f"""
30
  border: 5px solid black;
31
  border-radius: 4px;
32
  text-align: center;
33
- animation: flash 1s infinite;
34
  box-shadow: 0 0 20px #39FF14;
35
  transition: transform 0.2s;
36
  }}
@@ -169,19 +169,19 @@ with gr.Blocks() as demo:
169
 
170
  status_label = gr.Label(value="Ready")
171
 
172
- # Flashing link box above instructions
173
  link_box = gr.HTML(visible=False)
174
 
175
  gr.Markdown("---")
 
 
176
  gr.Markdown("""
177
- ### 📖 Instructions for Visitors
178
-
179
  **Step 1: Check Current Status**
180
  Review the **Live Jetstream2 Status**. If it shows `SLEEPING (SHELVED)`, the server is off. If it shows `RUNNING (ACTIVE)`, the application is already live for everyone! Either way please proceed to next step.
181
 
182
  **Step 2: Access or Wake Up**
183
- - If a **Flashing Green Box** is already visible (at top of these instructions), simply click it to open ComFit Copilot.
184
- - If no Flashing Green Box is visible, click **Activate / Access ComFit Copilot** button (left top). This will trigger the un-shelving process, which may take up to 2+ mins.
185
 
186
  **Note A: Track Milestones**
187
  The control panel will cycle through three milestones: Un-shelving, VM Activation, and Software Booting. Please be patient while the cloud prepares your environment.
@@ -195,7 +195,8 @@ with gr.Blocks() as demo:
195
 
196
  # Logo Footer Section
197
  gr.Markdown("---")
198
- gr.Markdown("<center><h3>Supported By</h3></center>")
 
199
  with gr.Row():
200
  gr.Image("logo1.png", show_label=False, interactive=False, container=False, scale=1)
201
  gr.Image("logo2.png", show_label=False, interactive=False, container=False, scale=1)
 
11
  clean_link = "comfit-copilot.mch250095.projects.jetstream-cloud.org:3000"
12
  full_url = f"http://{clean_link}"
13
 
14
+ # Styled HTML for a flashing neon green block with black text
15
  GREEN_FLASHING_LINK = f"""
16
  <style>
17
  @keyframes flash {{
 
30
  border: 5px solid black;
31
  border-radius: 4px;
32
  text-align: center;
33
+ # animation: flash 1s infinite;
34
  box-shadow: 0 0 20px #39FF14;
35
  transition: transform 0.2s;
36
  }}
 
169
 
170
  status_label = gr.Label(value="Ready")
171
 
172
+ # Flashing link box
173
  link_box = gr.HTML(visible=False)
174
 
175
  gr.Markdown("---")
176
+ # CENTER ALIGNED INSTRUCTIONS HEADER
177
+ gr.Markdown("<center><h3>📖 Instructions for Visitors</h3></center>")
178
  gr.Markdown("""
 
 
179
  **Step 1: Check Current Status**
180
  Review the **Live Jetstream2 Status**. If it shows `SLEEPING (SHELVED)`, the server is off. If it shows `RUNNING (ACTIVE)`, the application is already live for everyone! Either way please proceed to next step.
181
 
182
  **Step 2: Access or Wake Up**
183
+ - If a flashing **Green Button** is already visible (above these instructions), simply click it to open ComFit Copilot.
184
+ - If no flashing green button is visible, click **Activate / Access ComFit Copilot** button (top left). This will trigger the un-shelving process, which may take up to 2+ mins.
185
 
186
  **Note A: Track Milestones**
187
  The control panel will cycle through three milestones: Un-shelving, VM Activation, and Software Booting. Please be patient while the cloud prepares your environment.
 
195
 
196
  # Logo Footer Section
197
  gr.Markdown("---")
198
+ # UPDATED SUPPORTERS TEXT
199
+ gr.Markdown("<center><h3>Thanks to our supporters & supporters:</h3></center>")
200
  with gr.Row():
201
  gr.Image("logo1.png", show_label=False, interactive=False, container=False, scale=1)
202
  gr.Image("logo2.png", show_label=False, interactive=False, container=False, scale=1)