simonraj commited on
Commit
4cd012c
Β·
verified Β·
1 Parent(s): 73bb0fe

Update app.py

Browse files

placeholder adjustments

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -18,12 +18,11 @@ processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
18
  model.to("cuda:0")
19
 
20
  PLACEHOLDER = """
21
- <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; height: 100vh;">
22
- <img src="https://huggingface.co/spaces/simonraj/PersonalTrainer-Arnold/blob/main/fitness_coach_app_resized.jpg" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55;">
23
- <div style="background-color: rgba(0, 0, 0, 0.6); padding: 20px; border-radius: 10px; width: 80%; max-width: 550px; margin-top: 20px;">
24
- <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.85;">Get Ripped with Arnold's AI Coach</h1>
25
- <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.85;">Welcome to the ultimate fitness companion! πŸ’ͺ</p>
26
- <ul style="text-align: left; font-size: 16px; list-style: none; padding: 0; opacity: 0.85;">
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>
@@ -35,6 +34,7 @@ PLACEHOLDER = """
35
 
36
 
37
 
 
38
  @spaces.GPU
39
  def bot_streaming(message, history):
40
  print(f'message is - {message}')
 
18
  model.to("cuda:0")
19
 
20
  PLACEHOLDER = """
21
+ <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: 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;">
22
+ <div style="background-color: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 10px; width: 80%; max-width: 550px; text-align: center;">
23
+ <h1 style="font-size: 32px; margin-bottom: 10px; color: black;">Get Ripped with Arnold's AI Coach</h1>
24
+ <p style="font-size: 20px; margin-bottom: 10px; color: black;">Welcome to the ultimate fitness companion! πŸ’ͺ</p>
25
+ <ul style="text-align: left; font-size: 18px; list-style: none; padding: 0; color: black;">
 
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>
 
34
 
35
 
36
 
37
+
38
  @spaces.GPU
39
  def bot_streaming(message, history):
40
  print(f'message is - {message}')