Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def correct_text(text, max_length, min_length, max_new_tokens, num_beams, temper
|
|
31 |
)
|
32 |
|
33 |
corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
34 |
-
|
35 |
|
36 |
def respond(prompt, max_length, min_length, max_new_tokens, num_beams, temperature, top_p):
|
37 |
# Your response generation logic here
|
|
|
31 |
)
|
32 |
|
33 |
corrected_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
34 |
+
yield corrected_text
|
35 |
|
36 |
def respond(prompt, max_length, min_length, max_new_tokens, num_beams, temperature, top_p):
|
37 |
# Your response generation logic here
|