Spaces:
Sleeping
Sleeping
ww commited on
Commit ·
acc3cf5
1
Parent(s): e0a657b
history
Browse files
app.py
CHANGED
|
@@ -23,6 +23,9 @@ def generate_response(
|
|
| 23 |
temperature,
|
| 24 |
top_p,
|
| 25 |
):
|
|
|
|
|
|
|
|
|
|
| 26 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
| 27 |
stream = client.text_generation(formatted_prompt,stream=True, max_new_tokens=256)
|
| 28 |
output = ""
|
|
|
|
| 23 |
temperature,
|
| 24 |
top_p,
|
| 25 |
):
|
| 26 |
+
print('=====================')
|
| 27 |
+
print(history)
|
| 28 |
+
print('=====================')
|
| 29 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
| 30 |
stream = client.text_generation(formatted_prompt,stream=True, max_new_tokens=256)
|
| 31 |
output = ""
|