omkar56 commited on
Commit
12caf51
·
1 Parent(s): e9448a1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -7
main.py CHANGED
@@ -44,12 +44,12 @@ async def generate_text(request: Request, prompt: str = Body()):
44
  details=True,
45
  return_full_text=False
46
  )
47
- output = ""
48
 
49
- for response in stream:
50
- output += response.token.text
51
- yield output
52
- print(f"output + {output}")
53
- return output
54
 
55
- # return response
 
44
  details=True,
45
  return_full_text=False
46
  )
47
+ # output = ""
48
 
49
+ # for response in stream:
50
+ # output += response.token.text
51
+ # yield output
52
+ # print(f"output + {output}")
53
+ # return output
54
 
55
+ return response