Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,18 @@ client = InferenceClient(
|
|
5 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
6 |
)
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
def format_prompt(message, history):
|
9 |
prompt = "<s>"
|
10 |
for user_prompt, bot_response in history:
|
@@ -84,7 +96,7 @@ additional_inputs=[
|
|
84 |
chatbot = gr.Chatbot(height=450,
|
85 |
layout="bubble")
|
86 |
|
87 |
-
with gr.Blocks() as demo:
|
88 |
gr.HTML("<h1><center>🤖 Mistral-7B-Chat 💬<h1><center>")
|
89 |
gr.ChatInterface(
|
90 |
generate,
|
|
|
5 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
6 |
)
|
7 |
|
8 |
+
CSS = """
|
9 |
+
.duplicate-button {
|
10 |
+
margin: auto !important;
|
11 |
+
color: white !important;
|
12 |
+
background: black !important;
|
13 |
+
border-radius: 100vh !important;
|
14 |
+
}
|
15 |
+
h3 {
|
16 |
+
text-align: center;
|
17 |
+
}
|
18 |
+
"""
|
19 |
+
|
20 |
def format_prompt(message, history):
|
21 |
prompt = "<s>"
|
22 |
for user_prompt, bot_response in history:
|
|
|
96 |
chatbot = gr.Chatbot(height=450,
|
97 |
layout="bubble")
|
98 |
|
99 |
+
with gr.Blocks(css=CSS) as demo:
|
100 |
gr.HTML("<h1><center>🤖 Mistral-7B-Chat 💬<h1><center>")
|
101 |
gr.ChatInterface(
|
102 |
generate,
|