Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
9 |
|
10 |
DESCRIPTION = '''
|
11 |
<div>
|
12 |
-
<h1 style="text-align: center;">
|
13 |
</div>
|
14 |
'''
|
15 |
|
@@ -21,7 +21,7 @@ LICENSE = """
|
|
21 |
|
22 |
PLACEHOLDER = """
|
23 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
24 |
-
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">
|
25 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
|
26 |
</div>
|
27 |
"""
|
@@ -109,7 +109,7 @@ def chat_llama3_8b(message: str,
|
|
109 |
# Send the "thinking" message once text starts generating
|
110 |
if not thinking_message_sent:
|
111 |
thinking_message_sent = True
|
112 |
-
yield "
|
113 |
|
114 |
# Wait until </think> is detected before streaming output
|
115 |
if not think_detected:
|
|
|
9 |
|
10 |
DESCRIPTION = '''
|
11 |
<div>
|
12 |
+
<h1 style="text-align: center;">A.I. Healthcare</h1>
|
13 |
</div>
|
14 |
'''
|
15 |
|
|
|
21 |
|
22 |
PLACEHOLDER = """
|
23 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
24 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">A.I. Healthcare</h1>
|
25 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
|
26 |
</div>
|
27 |
"""
|
|
|
109 |
# Send the "thinking" message once text starts generating
|
110 |
if not thinking_message_sent:
|
111 |
thinking_message_sent = True
|
112 |
+
yield "A.I. Healthcare is Thinking...\n\n"
|
113 |
|
114 |
# Wait until </think> is detected before streaming output
|
115 |
if not think_detected:
|