Commit
·
edcd873
1
Parent(s):
698bcc0
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,14 +85,32 @@ additional_inputs=[
|
|
| 85 |
)
|
| 86 |
]
|
| 87 |
|
| 88 |
-
mychatbot = gr.Chatbot(
|
| 89 |
-
|
| 90 |
|
| 91 |
-
demo = gr.ChatInterface(fn=generate,
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
-
demo.queue().launch(show_api=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
)
|
| 86 |
]
|
| 87 |
|
| 88 |
+
# mychatbot = gr.Chatbot(
|
| 89 |
+
# avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True,)
|
| 90 |
|
| 91 |
+
# demo = gr.ChatInterface(fn=generate,
|
| 92 |
+
# chatbot=mychatbot,
|
| 93 |
+
# additional_inputs=additional_inputs,
|
| 94 |
+
# title="Kamran's Mixtral 8x7b Chat",
|
| 95 |
+
# retry_btn=None,
|
| 96 |
+
# undo_btn=None
|
| 97 |
+
# )
|
| 98 |
|
| 99 |
+
# demo.queue().launch(show_api=False)
|
| 100 |
+
|
| 101 |
+
examples=[["I'm planning a vacation to Japan. Can you suggest a one-week itinerary including must-visit places and local cuisines to try?", None, None, None, None, None, ],
|
| 102 |
+
["Can you write a short story about a time-traveling detective who solves historical mysteries?", None, None, None, None, None,],
|
| 103 |
+
["I'm trying to learn French. Can you provide some common phrases that would be useful for a beginner, along with their pronunciations?", None, None, None, None, None,],
|
| 104 |
+
["I have chicken, rice, and bell peppers in my kitchen. Can you suggest an easy recipe I can make with these ingredients?", None, None, None, None, None,],
|
| 105 |
+
["Can you explain how the QuickSort algorithm works and provide a Python implementation?", None, None, None, None, None,],
|
| 106 |
+
["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
|
| 107 |
+
]
|
| 108 |
+
|
| 109 |
+
gr.ChatInterface(
|
| 110 |
+
fn=generate,
|
| 111 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
| 112 |
+
additional_inputs=additional_inputs,
|
| 113 |
+
title="Mixtral 46.7B",
|
| 114 |
+
examples=examples,
|
| 115 |
+
concurrency_limit=20,
|
| 116 |
+
).launch(show_api=False)
|