Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,6 +174,7 @@ def agent(prompt_in,history,mod=2):
|
|
| 174 |
history = [history[-2:]]
|
| 175 |
role="PATHMAKER"
|
| 176 |
outph= list(generate(prompt,history,mod,2400,seed,role,in_data))[0]
|
|
|
|
| 177 |
print(outph)
|
| 178 |
history=history+[{'role':'assistant','content':str(outph)}]
|
| 179 |
yield [{'role':'assistant','content':str(outph)}]
|
|
|
|
| 174 |
history = [history[-2:]]
|
| 175 |
role="PATHMAKER"
|
| 176 |
outph= list(generate(prompt,history,mod,2400,seed,role,in_data))[0]
|
| 177 |
+
in_data[4]=outph
|
| 178 |
print(outph)
|
| 179 |
history=history+[{'role':'assistant','content':str(outph)}]
|
| 180 |
yield [{'role':'assistant','content':str(outph)}]
|