Spaces:
Sleeping
Sleeping
yes:
Browse files
app.py
CHANGED
@@ -11,22 +11,8 @@ Your container is written in HTML. All outputs must be in HTML format. User cann
|
|
11 |
|
12 |
<!DOCTYPE html>"""
|
13 |
|
14 |
-
def respond(
|
15 |
-
message,
|
16 |
-
history: list[tuple[str, str]],
|
17 |
-
system_message,
|
18 |
-
max_tokens,
|
19 |
-
temperature,
|
20 |
-
top_p,
|
21 |
-
):
|
22 |
messages = [{"role": "system", "content": SYSTEM_MAGIC}]
|
23 |
-
|
24 |
-
for val in history:
|
25 |
-
if val[0]:
|
26 |
-
messages.append({"role": "user", "content": val[0]})
|
27 |
-
if val[1]:
|
28 |
-
messages.append({"role": "assistant", "content": val[1]})
|
29 |
-
|
30 |
messages.append({"role": "user", "content": message})
|
31 |
|
32 |
response = ""
|
|
|
11 |
|
12 |
<!DOCTYPE html>"""
|
13 |
|
14 |
+
def respond(message):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
messages = [{"role": "system", "content": SYSTEM_MAGIC}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
messages.append({"role": "user", "content": message})
|
17 |
|
18 |
response = ""
|