broadfield commited on
Commit
d96ba17
·
verified ·
1 Parent(s): 025291b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,7 +22,7 @@ def format_prompt(message, history):
22
 
23
  def generate(prompt,history):
24
  if not history:
25
- history=[()]
26
  seed = random.randint(1,9999999999999)
27
  print(seed)
28
  system_prompt = prompts.ASSISTANT
@@ -41,8 +41,8 @@ def generate(prompt,history):
41
  buf = ""
42
  for response in stream:
43
  output += response.token.text
44
- yield [history,(prompt,output)], ""
45
- yield [history,(prompt,output)], output
46
  def tts(inp,voice,length,noise,width,sen_pause):
47
  #print(inp)
48
  #print(type(inp))
 
22
 
23
  def generate(prompt,history):
24
  if not history:
25
+ history=[]
26
  seed = random.randint(1,9999999999999)
27
  print(seed)
28
  system_prompt = prompts.ASSISTANT
 
41
  buf = ""
42
  for response in stream:
43
  output += response.token.text
44
+ yield [(out,output)], ""
45
+ yield [(out,output)], output
46
  def tts(inp,voice,length,noise,width,sen_pause):
47
  #print(inp)
48
  #print(type(inp))