Spaces:
Runtime error
Runtime error
Update app.py
Browse filesTo ensure it placeholder displays properly
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;
|
22 |
-
<
|
23 |
-
|
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}')
|