simonraj commited on
Commit
fe2e9d1
Β·
verified Β·
1 Parent(s): b630e96

Update app.py

Browse files

background image + placeholder instructions

Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -19,17 +19,20 @@ model.to("cuda:0")
19
 
20
  # Enhanced Placeholder HTML with instructions
21
  PLACEHOLDER = """
22
- <div style="padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center;">
23
- <h1 style="font-size: 32px; margin-bottom: 10px;">Get Ripped with Arnold's AI Coach</h1>
24
- <p style="font-size: 18px; margin-bottom: 5px;">Welcome to the ultimate fitness companion! πŸ’ͺ</p>
25
- <ul style="text-align: left; font-size: 16px;">
26
- <li>πŸ“Έ <strong>Upload</strong> a photo of your exercise.</li>
27
- <li>⚑ <strong>Get instant feedback</strong> to perfect your form.</li>
28
- <li>πŸ”₯ <strong>Improve your workouts</strong> with expert tips!</li>
29
- </ul>
 
 
30
  </div>
31
  """
32
 
 
33
  @spaces.GPU
34
  def bot_streaming(message, history):
35
  print(f'message is - {message}')
 
19
 
20
  # Enhanced Placeholder HTML with instructions
21
  PLACEHOLDER = """
22
+ <div style="padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; background-image: url('https://huggingface.co/spaces/simonraj/PersonalTrainer-Arnold/blob/main/fitness_coach_app_resized.jpg'); background-size: cover; background-position: center; width: 100%; height: 100vh; color: white;">
23
+ <div style="background-color: rgba(0, 0, 0, 0.6); padding: 20px; border-radius: 10px;">
24
+ <h1 style="font-size: 32px; margin-bottom: 10px;">Get Ripped with Arnold's AI Coach</h1>
25
+ <p style="font-size: 18px; margin-bottom: 5px;">Welcome to the ultimate fitness companion! πŸ’ͺ</p>
26
+ <ul style="text-align: left; font-size: 16px; list-style: none; padding: 0;">
27
+ <li>πŸ“Έ <strong>Upload</strong> a photo of your exercise.</li>
28
+ <li>⚑ <strong>Get instant feedback</strong> to perfect your form.</li>
29
+ <li>πŸ”₯ <strong>Improve your workouts</strong> with expert tips!</li>
30
+ </ul>
31
+ </div>
32
  </div>
33
  """
34
 
35
+
36
  @spaces.GPU
37
  def bot_streaming(message, history):
38
  print(f'message is - {message}')