fix
Browse files
app.py
CHANGED
@@ -47,12 +47,14 @@ def infer(
|
|
47 |
yield response
|
48 |
|
49 |
def respond(
|
50 |
-
message,
|
51 |
-
history,
|
52 |
-
max_tokens,
|
53 |
-
temperature,
|
54 |
-
top_p,
|
55 |
):
|
|
|
|
|
56 |
if len(history) == 0 or history[0]['role'] != 'system':
|
57 |
messages = [{"role": "system", "content": """You are Softie, or 小软 in Chinese.
|
58 |
You are an intelligent assistant developed by the School of Software at Hefei University of Technology.
|
|
|
47 |
yield response
|
48 |
|
49 |
def respond(
|
50 |
+
message: str,
|
51 |
+
history: list[object],
|
52 |
+
max_tokens: int,
|
53 |
+
temperature: float,
|
54 |
+
top_p: float,
|
55 |
):
|
56 |
+
print('message:', message)
|
57 |
+
print('history:', history)
|
58 |
if len(history) == 0 or history[0]['role'] != 'system':
|
59 |
messages = [{"role": "system", "content": """You are Softie, or 小软 in Chinese.
|
60 |
You are an intelligent assistant developed by the School of Software at Hefei University of Technology.
|