Spaces:
Runtime error
Runtime error
Commit
·
ff6879e
1
Parent(s):
8da4e7a
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,11 @@ generate_text = InstructionTextGenerationPipeline(model=model, tokenizer=tokeniz
|
|
19 |
|
20 |
def generate(instruction):
|
21 |
response = generate_text(instruction)
|
22 |
-
result = ""
|
23 |
-
for word in response.split(" "):
|
24 |
-
|
25 |
-
|
|
|
26 |
|
27 |
|
28 |
examples = [
|
|
|
19 |
|
20 |
def generate(instruction):
|
21 |
response = generate_text(instruction)
|
22 |
+
# result = ""
|
23 |
+
# for word in response.split(" "):
|
24 |
+
# result += word + " "
|
25 |
+
# yield result
|
26 |
+
return response
|
27 |
|
28 |
|
29 |
examples = [
|