chore: duplicate note
Browse files
app.py
CHANGED
@@ -12,6 +12,17 @@ MISTRAL_API_KEY = os.environ.get("MISTRAL_API_KEY")
|
|
12 |
|
13 |
|
14 |
TITLE = """<h1 align="center">MistralAI Playground 💬</h1>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
AVATAR_IMAGES = (None, "https://media.roboflow.com/spaces/gemini-icon.png")
|
16 |
|
17 |
|
@@ -106,6 +117,7 @@ def user(text_prompt: str, history):
|
|
106 |
|
107 |
with gr.Blocks() as demo:
|
108 |
gr.HTML(TITLE)
|
|
|
109 |
with gr.Column():
|
110 |
mistral_key_component.render()
|
111 |
chatbot_component.render()
|
|
|
12 |
|
13 |
|
14 |
TITLE = """<h1 align="center">MistralAI Playground 💬</h1>"""
|
15 |
+
DUPLICATE = """
|
16 |
+
<div style="text-align: center; display: flex; justify-content: center; align-items: center;">
|
17 |
+
<a href="https://huggingface.co/spaces/douglarek/MistralAI?duplicate=true">
|
18 |
+
<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space" style="margin-right: 10px;">
|
19 |
+
</a>
|
20 |
+
<span>Duplicate the Space and run securely with your
|
21 |
+
<a href="https://console.mistral.ai/user/api-keys"> Mistral API KEY</a>.
|
22 |
+
</span>
|
23 |
+
</div>
|
24 |
+
"""
|
25 |
+
|
26 |
AVATAR_IMAGES = (None, "https://media.roboflow.com/spaces/gemini-icon.png")
|
27 |
|
28 |
|
|
|
117 |
|
118 |
with gr.Blocks() as demo:
|
119 |
gr.HTML(TITLE)
|
120 |
+
gr.HTML(DUPLICATE)
|
121 |
with gr.Column():
|
122 |
mistral_key_component.render()
|
123 |
chatbot_component.render()
|