Jofthomas HF staff commited on
Commit
af615c0
1 Parent(s): 15b7c5c

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. 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
- client_ip = request.client.host
186
- print("client_ip : ",client_ip)
 
 
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)