Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ SYSTEM_PROMPT = "You are an AI Healthcare assistant. Provide clear, empathetic,
|
|
12 |
|
13 |
DESCRIPTION = '''
|
14 |
<div>
|
15 |
-
<h1 style="text-align: center;">
|
16 |
</div>
|
17 |
'''
|
18 |
|
@@ -24,8 +24,8 @@ This Health Assistant is designed to provide helpful healthcare information; how
|
|
24 |
|
25 |
PLACEHOLDER = """
|
26 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
27 |
-
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">
|
28 |
-
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">
|
29 |
</div>
|
30 |
"""
|
31 |
|
@@ -134,7 +134,7 @@ def chat_llama3_8b(message: str,
|
|
134 |
history.append((message, full_response)) # Full assistant response saved for context
|
135 |
|
136 |
# Gradio block
|
137 |
-
chatbot = gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='
|
138 |
|
139 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
140 |
|
|
|
12 |
|
13 |
DESCRIPTION = '''
|
14 |
<div>
|
15 |
+
<h1 style="text-align: center;">HealthAssistant</h1>
|
16 |
</div>
|
17 |
'''
|
18 |
|
|
|
24 |
|
25 |
PLACEHOLDER = """
|
26 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
27 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">The "Doctor" is in.</h1>
|
28 |
+
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Available 1:00pm - 5:00pm EST</p>
|
29 |
</div>
|
30 |
"""
|
31 |
|
|
|
134 |
history.append((message, full_response)) # Full assistant response saved for context
|
135 |
|
136 |
# Gradio block
|
137 |
+
chatbot = gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='HealthAssistant')
|
138 |
|
139 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
140 |
|