Update TextGen/router.py
Browse files- TextGen/router.py +4 -2
TextGen/router.py
CHANGED
@@ -182,8 +182,10 @@ def story(prompt: Invoke):
|
|
182 |
|
183 |
@app.post("/generate_level")
|
184 |
def placement(input: Rooms, request: Request):
|
185 |
-
|
186 |
-
|
|
|
|
|
187 |
print(input)
|
188 |
markdown_map=generate_map_markdown(input.rooms,input.room_of_interest,input.index_exit)
|
189 |
story=generate_story(input.possible_entities)
|
|
|
182 |
|
183 |
@app.post("/generate_level")
|
184 |
def placement(input: Rooms, request: Request):
|
185 |
+
origin = request.headers.get("origin")
|
186 |
+
referer = request.headers.get("referer")
|
187 |
+
print("origin : ", origin)
|
188 |
+
print("referer : ", referer)
|
189 |
print(input)
|
190 |
markdown_map=generate_map_markdown(input.rooms,input.room_of_interest,input.index_exit)
|
191 |
story=generate_story(input.possible_entities)
|