Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def respond(
|
|
| 39 |
demo = gr.ChatInterface(
|
| 40 |
respond,
|
| 41 |
additional_inputs=[
|
| 42 |
-
gr.Textbox(value="You are a friendly
|
| 43 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 44 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 45 |
gr.Slider(
|
|
@@ -50,11 +50,11 @@ demo = gr.ChatInterface(
|
|
| 50 |
label="Top-p (nucleus sampling)",
|
| 51 |
),
|
| 52 |
],
|
| 53 |
-
title="Simple Chatbot
|
| 54 |
-
description="A basic chatbot using
|
| 55 |
examples=[
|
| 56 |
-
["
|
| 57 |
-
["
|
| 58 |
],
|
| 59 |
)
|
| 60 |
|
|
|
|
| 39 |
demo = gr.ChatInterface(
|
| 40 |
respond,
|
| 41 |
additional_inputs=[
|
| 42 |
+
gr.Textbox(value="You are a friendly chatbot. Respond directly to the user's message in Persian without explaining your thought process or adding any extra comments.", label="System message"),
|
| 43 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 44 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 45 |
gr.Slider(
|
|
|
|
| 50 |
label="Top-p (nucleus sampling)",
|
| 51 |
),
|
| 52 |
],
|
| 53 |
+
title="Simple Chatbot",
|
| 54 |
+
description="A basic chatbot using zephyr-7b-beta model.",
|
| 55 |
examples=[
|
| 56 |
+
["ماشین", [], "You are a friendly chatbot. Respond directly to the user's message in Persian without explaining your thought process or adding any extra comments.", 512, 0.7, 0.95],
|
| 57 |
+
["سلام، درباره تاریخ ایران بگو", [], "You are a friendly chatbot. Respond directly to the user's message in Persian without explaining your thought process or adding any extra comments.", 512, 0.7, 0.95],
|
| 58 |
],
|
| 59 |
)
|
| 60 |
|