minko186 commited on
Commit
6d7dce8
1 Parent(s): 42ce03d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def generate(text, max_length):
22
  return x
23
 
24
 
25
- def respond(message, tone="natural", max_length=512):
26
  prompt = f"Paraphrase this text in a more {tones[tone]} way: {message}"
27
  text = generate(prompt, max_length)
28
  print(text)
 
22
  return x
23
 
24
 
25
+ def respond(message, history, tone="natural", max_length=512):
26
  prompt = f"Paraphrase this text in a more {tones[tone]} way: {message}"
27
  text = generate(prompt, max_length)
28
  print(text)