mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
Update
This commit is contained in:
+4
-1
@@ -57,6 +57,9 @@ def play_constrained():
|
||||
result = None
|
||||
while(result == None):
|
||||
action_choice = input("Which action do you choose? ")
|
||||
if action_choice is "print story":
|
||||
print(story_manager.story)
|
||||
continue
|
||||
print("\n")
|
||||
result, possible_actions = story_manager.act(action_choice)
|
||||
|
||||
@@ -84,7 +87,7 @@ def play_cached():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
play_constrained()
|
||||
play_unconstrained()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ def loss(labels, logits):
|
||||
|
||||
class CTRLGenerator():
|
||||
|
||||
def __init__(self, control_code="Horror Text: ", generate_num=64, temperature=0.5):
|
||||
def __init__(self, control_code="Horror Text: ", generate_num=64, temperature=0.75):
|
||||
|
||||
self.generate_num=generate_num
|
||||
model_dir = "generator/ctrl/model/seqlen256_v1.ckpt/"
|
||||
|
||||
Reference in New Issue
Block a user