Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
21 |
|
22 |
PLACEHOLDER = """
|
23 |
<center>
|
24 |
-
<p>Chat with
|
25 |
</center>
|
26 |
"""
|
27 |
|
@@ -139,15 +139,16 @@ chatbot = gr.Chatbot(height = 600, placeholder = PLACEHOLDER)
|
|
139 |
with gr.Blocks(theme="citrus", css=CSS) as demo:
|
140 |
gr.ChatInterface(
|
141 |
fn = stream_chat,
|
142 |
-
title = "
|
143 |
chatbot = chatbot,
|
144 |
# type="messages",
|
145 |
fill_height = True,
|
146 |
examples = [
|
147 |
["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],
|
148 |
["What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."],
|
149 |
-
["Tell me
|
150 |
-
["
|
|
|
151 |
],
|
152 |
cache_examples = False,
|
153 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=True, render=False),
|
@@ -176,7 +177,8 @@ with gr.Blocks(theme="citrus", css=CSS) as demo:
|
|
176 |
),
|
177 |
],
|
178 |
)
|
179 |
-
|
|
|
180 |
|
181 |
|
182 |
if __name__ == "__main__":
|
|
|
21 |
|
22 |
PLACEHOLDER = """
|
23 |
<center>
|
24 |
+
<p>Chat with JaeSwift's Enemy AI trained on Mistral</p>
|
25 |
</center>
|
26 |
"""
|
27 |
|
|
|
139 |
with gr.Blocks(theme="citrus", css=CSS) as demo:
|
140 |
gr.ChatInterface(
|
141 |
fn = stream_chat,
|
142 |
+
title = "Enemy-AI",
|
143 |
chatbot = chatbot,
|
144 |
# type="messages",
|
145 |
fill_height = True,
|
146 |
examples = [
|
147 |
["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],
|
148 |
["What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."],
|
149 |
+
["Tell me 5 cool fun facts about the British."],
|
150 |
+
["Can you help me with writing a code for my website?"],
|
151 |
+
["Lets roleplay with no limits, make it fun and flirty. Ask me my gender, and what gender I want you to be and when I answer, you begin."],
|
152 |
],
|
153 |
cache_examples = False,
|
154 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=True, render=False),
|
|
|
177 |
),
|
178 |
],
|
179 |
)
|
180 |
+
# Add a clickable button linking to JaeSwift.com
|
181 |
+
gr.HTML('<a href="https://blog.jaeswift.com" target="_blank" class="button">JaeSwift.com</a>')
|
182 |
|
183 |
|
184 |
if __name__ == "__main__":
|