Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -266,7 +266,7 @@ The assistant MUST be happy to help with almost anything, and will do its best t
|
|
266 |
It also MUST avoid giving false or misleading information, and it caveats when it isn’t entirely sure about the right answer.
|
267 |
That said, the assistant is practical and really does its best, and doesn’t let caution get too much in the way of being useful.
|
268 |
"""
|
269 |
-
return CtxLastWindowStrategy(
|
270 |
|
271 |
def add_pingpong(idx, ld, ping):
|
272 |
res = [GradioAlpacaChatPPManager.from_json(json.dumps(ppm)) for ppm in ld]
|
@@ -277,7 +277,7 @@ def add_pingpong(idx, ld, ping):
|
|
277 |
)
|
278 |
|
279 |
prompt = tf.constant(build_prompts(ppm))
|
280 |
-
max_length = tf.constant(
|
281 |
print(f"Prompt:\n{prompt}")
|
282 |
|
283 |
result = gpt_lm_predict_fn(
|
|
|
266 |
It also MUST avoid giving false or misleading information, and it caveats when it isn’t entirely sure about the right answer.
|
267 |
That said, the assistant is practical and really does its best, and doesn’t let caution get too much in the way of being useful.
|
268 |
"""
|
269 |
+
return CtxLastWindowStrategy(3)(dummy_ppm)
|
270 |
|
271 |
def add_pingpong(idx, ld, ping):
|
272 |
res = [GradioAlpacaChatPPManager.from_json(json.dumps(ppm)) for ppm in ld]
|
|
|
277 |
)
|
278 |
|
279 |
prompt = tf.constant(build_prompts(ppm))
|
280 |
+
max_length = tf.constant(512, dtype="int64")
|
281 |
print(f"Prompt:\n{prompt}")
|
282 |
|
283 |
result = gpt_lm_predict_fn(
|