Changed horizon length
Browse files
app.py
CHANGED
@@ -754,7 +754,7 @@ top_k=2
|
|
754 |
sample=True
|
755 |
num_iterations=10
|
756 |
grad_length=10000
|
757 |
-
horizon_length=
|
758 |
window_length=0
|
759 |
decay=False
|
760 |
gamma=1.0
|
@@ -813,7 +813,7 @@ for param in model.parameters():
|
|
813 |
|
814 |
eot_token = "<|endoftext|>"
|
815 |
|
816 |
-
def get_reply(response, username = None, histories = {}, in_stepsize = 2.56, in_horizon_length =
|
817 |
if username == None or username == "": return "<div class='chatbot'>Enter a username</div>", histories
|
818 |
stepsize = in_stepsize
|
819 |
horizon_length = int(in_horizon_length)
|
|
|
754 |
sample=True
|
755 |
num_iterations=10
|
756 |
grad_length=10000
|
757 |
+
horizon_length=1
|
758 |
window_length=0
|
759 |
decay=False
|
760 |
gamma=1.0
|
|
|
813 |
|
814 |
eot_token = "<|endoftext|>"
|
815 |
|
816 |
+
def get_reply(response, username = None, histories = {}, in_stepsize = 2.56, in_horizon_length = 1, in_num_iterations = 10, in_top_k = 2):
|
817 |
if username == None or username == "": return "<div class='chatbot'>Enter a username</div>", histories
|
818 |
stepsize = in_stepsize
|
819 |
horizon_length = int(in_horizon_length)
|