Spaces:
Runtime error
Runtime error
sotirios-slv
commited on
Commit
•
c6d08b7
1
Parent(s):
4b137c2
Added some placeholder text in
Browse files
app.py
CHANGED
@@ -4,6 +4,15 @@ import gradio as gr
|
|
4 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def format_prompt(message, history):
|
8 |
prompt = "<s>"
|
9 |
for user_prompt, bot_response in history:
|
@@ -100,6 +109,7 @@ gr.ChatInterface(
|
|
100 |
show_copy_button=True,
|
101 |
likeable=True,
|
102 |
layout="panel",
|
|
|
103 |
),
|
104 |
additional_inputs=additional_inputs,
|
105 |
title="""Mistral 7B""",
|
|
|
4 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
|
5 |
|
6 |
|
7 |
+
PLACEHOLDER = """
|
8 |
+
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
9 |
+
<img src="./images/val_speaking_transparent.gif" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
|
10 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Val the Voyager</h1>
|
11 |
+
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Hi Jennifer, my name is Val, welcome onboard! Ask me anything about working at DTF...</p>
|
12 |
+
</div>.
|
13 |
+
"""
|
14 |
+
|
15 |
+
|
16 |
def format_prompt(message, history):
|
17 |
prompt = "<s>"
|
18 |
for user_prompt, bot_response in history:
|
|
|
109 |
show_copy_button=True,
|
110 |
likeable=True,
|
111 |
layout="panel",
|
112 |
+
placeholder=PLACEHOLDER,
|
113 |
),
|
114 |
additional_inputs=additional_inputs,
|
115 |
title="""Mistral 7B""",
|