Miguel Diaz commited on
Commit
e74c0fb
·
1 Parent(s): a925393

fix: statics

Browse files
Files changed (2) hide show
  1. main.py +1 -1
  2. static/js/windowHandler.js +3 -3
main.py CHANGED
@@ -65,7 +65,7 @@ async def root(request: Request, credentials: HTTPBasicCredentials = Depends(sec
65
  if authenticate_user(credentials):
66
  token = create_jwt_token({"user":credentials.username})
67
  with open(os.path.join("static", "main.html")) as f:
68
- return HTMLResponse(f.read().replace("{% token %}", token).replace("{% version %}", "8"))
69
 
70
 
71
  @app.post("/chat_stream")
 
65
  if authenticate_user(credentials):
66
  token = create_jwt_token({"user":credentials.username})
67
  with open(os.path.join("static", "main.html")) as f:
68
+ return HTMLResponse(f.read().replace("{% token %}", token).replace("{% version %}", "9"))
69
 
70
 
71
  @app.post("/chat_stream")
static/js/windowHandler.js CHANGED
@@ -25,9 +25,9 @@ class WindowHandler{
25
  this.manejadorEnviar();
26
  }});
27
  $("#input-send").click(() => this.manejadorEnviar());
28
- $("#input-text").keypress(() => this.recaularTextarea());
29
- $("#input-text").keyup(() => this.recaularTextarea());
30
- $("#input-text").keydown(() => this.recaularTextarea());
31
  this.cargarChat(chatH.convesacion);
32
  }
33
 
 
25
  this.manejadorEnviar();
26
  }});
27
  $("#input-send").click(() => this.manejadorEnviar());
28
+ $("#input-text").keypress(() => this.recalcularTextarea());
29
+ $("#input-text").keyup(() => this.recalcularTextarea());
30
+ $("#input-text").keydown(() => this.recalcularTextarea());
31
  this.cargarChat(chatH.convesacion);
32
  }
33