Update app.py
Browse files
app.py
CHANGED
|
@@ -46,14 +46,16 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
| 46 |
|
| 47 |
demo = gr.ChatInterface(
|
| 48 |
respond,
|
| 49 |
-
|
| 50 |
-
|
| 51 |
"""
|
| 52 |
# Welcome to My Chat Interface
|
| 53 |
This app uses the Llama-3.2-1B-Instruct model to provide conversational AI responses.
|
| 54 |
Adjust the parameters below to customize the chat behavior.
|
| 55 |
""",
|
| 56 |
),
|
|
|
|
|
|
|
| 57 |
additional_inputs=[
|
| 58 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 59 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
|
@@ -66,6 +68,7 @@ demo = gr.ChatInterface(
|
|
| 66 |
label="Top-p (nucleus sampling)",
|
| 67 |
),
|
| 68 |
],
|
|
|
|
| 69 |
)
|
| 70 |
|
| 71 |
|
|
|
|
| 46 |
|
| 47 |
demo = gr.ChatInterface(
|
| 48 |
respond,
|
| 49 |
+
inputs = [
|
| 50 |
+
gr.Markdown(
|
| 51 |
"""
|
| 52 |
# Welcome to My Chat Interface
|
| 53 |
This app uses the Llama-3.2-1B-Instruct model to provide conversational AI responses.
|
| 54 |
Adjust the parameters below to customize the chat behavior.
|
| 55 |
""",
|
| 56 |
),
|
| 57 |
+
]
|
| 58 |
+
|
| 59 |
additional_inputs=[
|
| 60 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
| 61 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
|
|
|
| 68 |
label="Top-p (nucleus sampling)",
|
| 69 |
),
|
| 70 |
],
|
| 71 |
+
theme = "soft",
|
| 72 |
)
|
| 73 |
|
| 74 |
|