Spaces:
Runtime error
Runtime error
Hugo Garcia-Cotte
commited on
Commit
•
96587f3
1
Parent(s):
8a7e1d1
Add first version of the game file
Browse files- danse_macabre.py +2 -1
danse_macabre.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import openai
|
2 |
import re
|
|
|
3 |
|
4 |
# Set up the API key
|
5 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
@@ -405,7 +406,7 @@ def main():
|
|
405 |
|
406 |
print(nextseq)
|
407 |
#For cases where the control has a bug and gives a next sequence that doesn't exist, like #NEXT:CONTINUE#
|
408 |
-
if
|
409 |
|
410 |
print("End")
|
411 |
|
|
|
1 |
import openai
|
2 |
import re
|
3 |
+
import os
|
4 |
|
5 |
# Set up the API key
|
6 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
406 |
|
407 |
print(nextseq)
|
408 |
#For cases where the control has a bug and gives a next sequence that doesn't exist, like #NEXT:CONTINUE#
|
409 |
+
if "#NEXT:ACT2#" not in nextseq : nextseq = "#NEXT:ABBEY#"
|
410 |
|
411 |
print("End")
|
412 |
|