Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ def generate(
|
|
34 |
response = client.text_generation(prompt, **generate_kwargs, stream=False, details=False, return_full_text=False)
|
35 |
print(response)
|
36 |
return response
|
37 |
-
output = ""
|
38 |
|
39 |
-
for response in stream:
|
40 |
-
|
41 |
|
42 |
app = Flask(__name__)
|
43 |
|
|
|
34 |
response = client.text_generation(prompt, **generate_kwargs, stream=False, details=False, return_full_text=False)
|
35 |
print(response)
|
36 |
return response
|
37 |
+
#output = ""
|
38 |
|
39 |
+
#for response in stream:
|
40 |
+
# yield response.token.text.encode('utf-8')
|
41 |
|
42 |
app = Flask(__name__)
|
43 |
|