Spaces:
Running
Running
Update app.py
Browse files
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)
|