Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def correct_text2(text, genConfig):
|
|
44 |
outputs = model.generate(inputs, **genConfig.to_dict())
|
45 |
|
46 |
corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
47 |
-
|
48 |
|
49 |
def respond(text, max_length, min_length, max_new_tokens, min_new_tokens, num_beams, temperature, top_p):
|
50 |
config = GenerationConfig(
|
|
|
44 |
outputs = model.generate(inputs, **genConfig.to_dict())
|
45 |
|
46 |
corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
47 |
+
return corrected_text
|
48 |
|
49 |
def respond(text, max_length, min_length, max_new_tokens, min_new_tokens, num_beams, temperature, top_p):
|
50 |
config = GenerationConfig(
|