Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ client = InferenceClient(model)
|
|
9 |
def fn(
|
10 |
prompt,
|
11 |
#history: list[tuple[str, str]],
|
12 |
-
history
|
13 |
#system_prompt,
|
14 |
max_tokens,
|
15 |
temperature,
|
@@ -19,6 +19,7 @@ def fn(
|
|
19 |
#history.append({"role": "user", "content": prompt})
|
20 |
|
21 |
messages = [{"role": "user", "content": prompt}]
|
|
|
22 |
history.append(messages)
|
23 |
|
24 |
#for val in history:
|
|
|
9 |
def fn(
|
10 |
prompt,
|
11 |
#history: list[tuple[str, str]],
|
12 |
+
history,
|
13 |
#system_prompt,
|
14 |
max_tokens,
|
15 |
temperature,
|
|
|
19 |
#history.append({"role": "user", "content": prompt})
|
20 |
|
21 |
messages = [{"role": "user", "content": prompt}]
|
22 |
+
history = []
|
23 |
history.append(messages)
|
24 |
|
25 |
#for val in history:
|