RamAnanth1 commited on
Commit
ff6879e
·
1 Parent(s): 8da4e7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- result += word + " "
25
- yield result
 
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 = [