vericudebuget commited on
Commit
d2acdfd
1 Parent(s): 2cb9aa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
35
  output = ""
36
  for response in stream:
37
  output += response.token.text
38
- return output
39
 
40
  additional_inputs = [
41
  gr.Textbox(label="System Prompt", max_lines=1, interactive=True),
 
35
  output = ""
36
  for response in stream:
37
  output += response.token.text
38
+ yield output
39
 
40
  additional_inputs = [
41
  gr.Textbox(label="System Prompt", max_lines=1, interactive=True),