Update app.py
Browse files
app.py
CHANGED
@@ -85,8 +85,16 @@ additional_inputs=[
|
|
85 |
|
86 |
gr.Interface(
|
87 |
fn=generate,
|
88 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
outputs="text",
|
90 |
title="Interactive Chat with AI Models",
|
91 |
-
description="Type a message and see the AI's response. Adjust parameters to change the behavior."
|
92 |
).launch()
|
|
|
85 |
|
86 |
gr.Interface(
|
87 |
fn=generate,
|
88 |
+
inputs=dict(
|
89 |
+
Message=gr.components.TextBox(lines=1, placeholer='Your message'),
|
90 |
+
History=gr.components.State(value=[(current_context['assistant']['last'], current_context['human']['last'])]),
|
91 |
+
Temperature=additional_inputs[0],
|
92 |
+
MaxNewTokens=additional_inputs[1],
|
93 |
+
TopP=additional_inputs[2],
|
94 |
+
RepetitionPenalty=additional_inputs[3],
|
95 |
+
ModelName=additional_inputs[4],
|
96 |
+
),
|
97 |
outputs="text",
|
98 |
title="Interactive Chat with AI Models",
|
99 |
+
description="Type a message and see the AI's response. Adjust parameters to change the behavior.",
|
100 |
).launch()
|