Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def generate_and_log_tokens(user_request, model, generator):
|
|
206 |
def generate_response():
|
207 |
global stop_generation
|
208 |
raw_content = request.data
|
209 |
-
tokens = model.tokenize(raw_content)
|
210 |
generator = model.generate(
|
211 |
tokens[:CONTEXT_SIZE]
|
212 |
)
|
|
|
206 |
def generate_response():
|
207 |
global stop_generation
|
208 |
raw_content = request.data
|
209 |
+
tokens = model.tokenize(raw_content)
|
210 |
generator = model.generate(
|
211 |
tokens[:CONTEXT_SIZE]
|
212 |
)
|