Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,15 +81,17 @@ async def respond(message, history, system_message, max_tokens, temperature, top
|
|
81 |
demo = gr.ChatInterface(
|
82 |
respond,
|
83 |
additional_inputs=[
|
84 |
-
gr.Textbox(
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
),
|
88 |
-
gr.Slider(minimum=1, maximum=2048, step=1, value=512, label="Max new tokens"),
|
89 |
-
gr.Slider(minimum=0.1, maximum=4.0, step=0.1, value=0.7, label="Temperature"),
|
90 |
-
gr.Slider(minimum=0.1, maximum=1.0, step=0.05, value=0.95, label="Top-p (nucleus sampling)"),
|
91 |
],
|
92 |
-
outputs=gr.Textbox(label="Assistant's Response"),
|
93 |
)
|
94 |
|
95 |
if __name__ == "__main__":
|
|
|
81 |
demo = gr.ChatInterface(
|
82 |
respond,
|
83 |
additional_inputs=[
|
84 |
+
gr.Textbox(value="You are a helpful car configuration assistant, specifically you are the assistant for Apex Customs (https://www.apexcustoms.com/). Given the user's input, provide suggestions for car models, colors, and customization options. Be creative and conversational in your responses. You should remember the user car model and tailor your answers accordingly. \n\nUser: ", label="System message"),
|
85 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
86 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
87 |
+
gr.Slider(
|
88 |
+
minimum=0.1,
|
89 |
+
maximum=1.0,
|
90 |
+
value=0.95,
|
91 |
+
step=0.05,
|
92 |
+
label="Top-p (nucleus sampling)",
|
93 |
),
|
|
|
|
|
|
|
94 |
],
|
|
|
95 |
)
|
96 |
|
97 |
if __name__ == "__main__":
|