muryshev commited on
Commit
fae4fdc
1 Parent(s): 20e8e6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ def generate(
31
  #formatted_prompt = format_prompt(prompt, history)
32
 
33
  #stream = client.text_generation(prompt, **generate_kwargs, stream=True, details=False, return_full_text=False)
34
- stream = client.text_generation(prompt=prompt, stream=True)
35
- print(stream)
36
  output = ""
37
 
38
  for response in stream:
 
31
  #formatted_prompt = format_prompt(prompt, history)
32
 
33
  #stream = client.text_generation(prompt, **generate_kwargs, stream=True, details=False, return_full_text=False)
34
+ response = client.text_generation(prompt, **generate_kwargs, stream=False, details=False, return_full_text=False)
35
+ print(response)
36
  output = ""
37
 
38
  for response in stream: