Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,10 +96,10 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
| 96 |
#prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
|
| 97 |
for response in stream:
|
| 98 |
output += response.token.text
|
| 99 |
-
print(output)
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
|
| 104 |
elif role=="CREATE_FILE":
|
| 105 |
print("Running Create File")
|
|
|
|
| 96 |
#prompt=f"We just completed role:{role}, now choose the next tool to complete the task:{prompt}, or COMPLETE"
|
| 97 |
for response in stream:
|
| 98 |
output += response.token.text
|
| 99 |
+
#print(output)
|
| 100 |
+
yield output
|
| 101 |
+
yield history
|
| 102 |
+
yield prompt
|
| 103 |
|
| 104 |
elif role=="CREATE_FILE":
|
| 105 |
print("Running Create File")
|