Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,7 @@ def simptok(data):
|
|
| 39 |
# Generate response
|
| 40 |
output = model.generate(input_ids, max_length=50, num_return_sequences=1)
|
| 41 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 42 |
-
|
| 43 |
-
print(response)
|
| 44 |
|
| 45 |
|
| 46 |
def responsenew(data):
|
|
|
|
| 39 |
# Generate response
|
| 40 |
output = model.generate(input_ids, max_length=50, num_return_sequences=1)
|
| 41 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 42 |
+
return response
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
def responsenew(data):
|