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

Update app.py

Browse files

To ensure it placeholder displays properly

Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -18,9 +18,9 @@ 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; 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;">
22
- <div style="background-color: rgba(0, 0, 0, 0.6); padding: 20px; border-radius: 10px; width: 80%; max-width: 550px;">
23
- <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;">
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;">
@@ -34,6 +34,7 @@ PLACEHOLDER = """
34
 
35
 
36
 
 
37
  @spaces.GPU
38
  def bot_streaming(message, history):
39
  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; 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;">
 
34
 
35
 
36
 
37
+
38
  @spaces.GPU
39
  def bot_streaming(message, history):
40
  print(f'message is - {message}')