Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -200,27 +200,19 @@ def user_message(msg: str, history: list) -> tuple[str, list]:
|
|
200 |
history.append(ChatMessage(role="user", content=msg))
|
201 |
return "", history
|
202 |
|
203 |
-
|
204 |
-
# 메인 Blocks 인터페이스 생성
|
205 |
with gr.Blocks(
|
206 |
theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", neutral_hue="neutral"),
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
const style = document.createElement('style');
|
212 |
-
style.textContent = `
|
213 |
-
.chatbot-wrapper .message {
|
214 |
-
white-space: pre-wrap;
|
215 |
-
word-wrap: break-word;
|
216 |
-
}
|
217 |
-
`;
|
218 |
-
document.head.appendChild(style);
|
219 |
}
|
220 |
-
"""
|
221 |
-
|
222 |
gr.Markdown("# 💭 PharmAI: 추론 기반 약리학 전문 AI 서비스 💭")
|
223 |
|
|
|
|
|
224 |
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space">
|
225 |
<img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space&countColor=%23263759" />
|
226 |
</a>""")
|
|
|
200 |
history.append(ChatMessage(role="user", content=msg))
|
201 |
return "", history
|
202 |
|
|
|
|
|
203 |
with gr.Blocks(
|
204 |
theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", neutral_hue="neutral"),
|
205 |
+
css="""
|
206 |
+
.chatbot-wrapper .message {
|
207 |
+
white-space: pre-wrap;
|
208 |
+
word-wrap: break-word;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
}
|
210 |
+
"""
|
211 |
+
) as demo:
|
212 |
gr.Markdown("# 💭 PharmAI: 추론 기반 약리학 전문 AI 서비스 💭")
|
213 |
|
214 |
+
|
215 |
+
|
216 |
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space">
|
217 |
<img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space&countColor=%23263759" />
|
218 |
</a>""")
|