Omnibus commited on
Commit
edff410
·
verified ·
1 Parent(s): 8d3a4dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,9 +46,9 @@ def generate(prompt, history):
46
 
47
  for response in stream:
48
  output += response.token.text
49
- yield [(prompt,output)],output1
50
 
51
- if "PROMPT:" and "MEME_TEXT:" in output1:
52
  print("YES")
53
  prompt_t=output1.split("PROMPT:",1)[1].split("MEME_TEXT:",1)[0].strip()
54
  print(prompt_t)
 
46
 
47
  for response in stream:
48
  output += response.token.text
49
+ yield [(prompt,output)],output
50
 
51
+ if "PROMPT:" and "MEME_TEXT:" in output:
52
  print("YES")
53
  prompt_t=output1.split("PROMPT:",1)[1].split("MEME_TEXT:",1)[0].strip()
54
  print(prompt_t)