Spaces:
Runtime error
Runtime error
Miguel Diaz commited on
Commit ·
e74c0fb
1
Parent(s): a925393
fix: statics
Browse files- main.py +1 -1
- 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 %}", "
|
| 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.
|
| 29 |
-
$("#input-text").keyup(() => this.
|
| 30 |
-
$("#input-text").keydown(() => this.
|
| 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 |
|