Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,11 +52,9 @@ def respond(
|
|
| 52 |
max_tokens,
|
| 53 |
temperature,
|
| 54 |
top_p,
|
| 55 |
-
preprocess_user_input
|
| 56 |
):
|
| 57 |
# Preprocess the user input
|
| 58 |
-
|
| 59 |
-
message = preprocess_user_input(message)
|
| 60 |
|
| 61 |
messages = [{"role": "system", "content": system_message}]
|
| 62 |
|
|
@@ -99,7 +97,6 @@ demo = gr.ChatInterface(
|
|
| 99 |
step=0.05,
|
| 100 |
label="Top-p (nucleus sampling)",
|
| 101 |
),
|
| 102 |
-
gr.Checkbox(value=True, label="Preprocess User Input")
|
| 103 |
],
|
| 104 |
)
|
| 105 |
|
|
|
|
| 52 |
max_tokens,
|
| 53 |
temperature,
|
| 54 |
top_p,
|
|
|
|
| 55 |
):
|
| 56 |
# Preprocess the user input
|
| 57 |
+
message = preprocess_user_input(message)
|
|
|
|
| 58 |
|
| 59 |
messages = [{"role": "system", "content": system_message}]
|
| 60 |
|
|
|
|
| 97 |
step=0.05,
|
| 98 |
label="Top-p (nucleus sampling)",
|
| 99 |
),
|
|
|
|
| 100 |
],
|
| 101 |
)
|
| 102 |
|