mateoluksenberg commited on
Commit
d0c5413
·
verified ·
1 Parent(s): aec9488

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -9,6 +9,7 @@ from fastapi import FastAPI, UploadFile, File, Form
9
  from fastapi.middleware.cors import CORSMiddleware
10
  from pydantic import BaseModel
11
  from typing import Optional, List
 
12
 
13
  import fitz # PyMuPDF
14
  import docx
@@ -193,6 +194,7 @@ class ChatMessage(BaseModel):
193
 
194
  @app.post("/test/")
195
  async def test_endpoint(message: dict):
 
196
  if "text" not in message:
197
  raise HTTPException(status_code=400, detail="Missing 'text' in request body")
198
 
 
9
  from fastapi.middleware.cors import CORSMiddleware
10
  from pydantic import BaseModel
11
  from typing import Optional, List
12
+ import logging
13
 
14
  import fitz # PyMuPDF
15
  import docx
 
194
 
195
  @app.post("/test/")
196
  async def test_endpoint(message: dict):
197
+ logging.info(f"Received message: {message}")
198
  if "text" not in message:
199
  raise HTTPException(status_code=400, detail="Missing 'text' in request body")
200