Spaces:
Build error
Build error
Rename app.py to app-hard-code.py
Browse files
app.py → app-hard-code.py
RENAMED
|
@@ -6,10 +6,10 @@ from helper import get_together_api_key, load_env
|
|
| 6 |
|
| 7 |
client = Together(api_key=get_together_api_key())
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
system_prompt = """You are an AI Game master. Your job is to create a
|
| 15 |
start to an adventure based on the world, kingdom, town and character
|
|
|
|
| 6 |
|
| 7 |
client = Together(api_key=get_together_api_key())
|
| 8 |
|
| 9 |
+
world = load_world('./YourWorld_L1.json')
|
| 10 |
+
kingdom = world['kingdoms']['Varanasi Kingdom']
|
| 11 |
+
town = kingdom['towns']["Sarnath"]
|
| 12 |
+
character = town['npcs']['Rohan Vyas']
|
| 13 |
|
| 14 |
system_prompt = """You are an AI Game master. Your job is to create a
|
| 15 |
start to an adventure based on the world, kingdom, town and character
|