Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -41,8 +41,9 @@ async def generate_stream(item: Item):
|
|
| 41 |
)
|
| 42 |
|
| 43 |
formatted_prompt = format_prompt(f"{item.system_prompt}, {item.prompt}", item.history)
|
| 44 |
-
print(
|
| 45 |
-
print(
|
|
|
|
| 46 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 47 |
|
| 48 |
for response in stream:
|
|
|
|
| 41 |
)
|
| 42 |
|
| 43 |
formatted_prompt = format_prompt(f"{item.system_prompt}, {item.prompt}", item.history)
|
| 44 |
+
print(formatted_prompt)
|
| 45 |
+
print("=======")
|
| 46 |
+
print(item.history)
|
| 47 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 48 |
|
| 49 |
for response in stream:
|