Hazzzardous commited on
Commit
be6ae85
1 Parent(s): 588129f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"])]