Update app.py
Browse files
app.py
CHANGED
@@ -73,13 +73,10 @@ demo = gr.ChatInterface(
|
|
73 |
fn=bot_streaming,
|
74 |
title="Multimodal Chat Assistant",
|
75 |
additional_inputs=[
|
76 |
-
gr.
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
step=10,
|
81 |
-
label="Maximum number of new tokens to generate",
|
82 |
-
)
|
83 |
],
|
84 |
description=(
|
85 |
"This demo combines text and image understanding using Moondream2 for visual "
|
|
|
73 |
fn=bot_streaming,
|
74 |
title="Multimodal Chat Assistant",
|
75 |
additional_inputs=[
|
76 |
+
gr.Textbox(value="You are a friendly assistant.", label="System message"),
|
77 |
+
gr.Slider(minimum=10, maximum=500, value=250, step=10, label="Maximum number of new tokens to generate"),
|
78 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
79 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
|
|
|
|
|
|
80 |
],
|
81 |
description=(
|
82 |
"This demo combines text and image understanding using Moondream2 for visual "
|