Spaces:
Build error
Build error
Commit
·
be6ae85
1
Parent(s):
588129f
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ import gradio as gr
|
|
| 11 |
|
| 12 |
|
| 13 |
def predict(input, history=None):
|
| 14 |
-
model.setState(history)
|
| 15 |
model.loadContext(newctx=f"Prompt: {input}\n\nExpert Long Detailed Response: ")
|
| 16 |
r = model.forward(number=100,stopStrings=["\n\nPrompt"])
|
| 17 |
rr = [(input,r["output"])]
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
def predict(input, history=None):
|
| 14 |
+
model.setState(history[1])
|
| 15 |
model.loadContext(newctx=f"Prompt: {input}\n\nExpert Long Detailed Response: ")
|
| 16 |
r = model.forward(number=100,stopStrings=["\n\nPrompt"])
|
| 17 |
rr = [(input,r["output"])]
|