Raghavan1988 commited on
Commit
13ba459
1 Parent(s): 97b9a12

bug fix for output=

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def generate(
63
  formatted_prompt = format_prompt(prompt, history, system_prompt)
64
 
65
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
66
- #output = ""
67
 
68
  for response in stream:
69
  output += response.token.text
 
63
  formatted_prompt = format_prompt(prompt, history, system_prompt)
64
 
65
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
66
+ output = ""
67
 
68
  for response in stream:
69
  output += response.token.text