Spaces:
Runtime error
Runtime error
Update app.py
Browse filesbackground image + placeholder instructions
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 |
-
<
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
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}')
|