Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ history = []
|
|
31 |
|
32 |
def gen_from_infer(purpose,history,image,model_drop,chat_drop,choice):
|
33 |
#out_img = infer(out_prompt)
|
34 |
-
history
|
35 |
out_prompt=generate(purpose,history,chat_drop)
|
36 |
history.append((purpose,out_prompt))
|
37 |
yield (history,None)
|
|
|
31 |
|
32 |
def gen_from_infer(purpose,history,image,model_drop,chat_drop,choice):
|
33 |
#out_img = infer(out_prompt)
|
34 |
+
history.clear()
|
35 |
out_prompt=generate(purpose,history,chat_drop)
|
36 |
history.append((purpose,out_prompt))
|
37 |
yield (history,None)
|