Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -50,13 +50,12 @@ from serpapi import GoogleSearch
|
|
50 |
from fastapi import FastAPI, UploadFile, File
|
51 |
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
|
52 |
from fastapi import Depends, FastAPI, HTTPException, status
|
53 |
-
from fastapi.responses import StreamingResponse, JSONResponse
|
54 |
from fastapi import HTTPException
|
55 |
-
from fastapi import
|
56 |
from fastapi import Body, Query
|
57 |
from fastapi.staticfiles import StaticFiles
|
58 |
from fastapi.templating import Jinja2Templates
|
59 |
-
from fastapi.responses import FileResponse
|
60 |
|
61 |
from RyuzakiLib.hackertools.chatgpt import RendyDevChat
|
62 |
from RyuzakiLib.hackertools.openai_api import OpenAiToken
|
@@ -885,7 +884,6 @@ def custom_exception_handler(request: Request, exc: HTTPException) -> JSONRespon
|
|
885 |
status_code=exc.status_code,
|
886 |
content=custom_error_model.dict(),
|
887 |
headers=exc.headers,
|
888 |
-
background=exc.background,
|
889 |
)
|
890 |
|
891 |
# Add the custom exception handler to your FastAPI app
|
|
|
50 |
from fastapi import FastAPI, UploadFile, File
|
51 |
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
|
52 |
from fastapi import Depends, FastAPI, HTTPException, status
|
53 |
+
from fastapi.responses import StreamingResponse, JSONResponse, FileResponse
|
54 |
from fastapi import HTTPException
|
55 |
+
from fastapi import Request, Header
|
56 |
from fastapi import Body, Query
|
57 |
from fastapi.staticfiles import StaticFiles
|
58 |
from fastapi.templating import Jinja2Templates
|
|
|
59 |
|
60 |
from RyuzakiLib.hackertools.chatgpt import RendyDevChat
|
61 |
from RyuzakiLib.hackertools.openai_api import OpenAiToken
|
|
|
884 |
status_code=exc.status_code,
|
885 |
content=custom_error_model.dict(),
|
886 |
headers=exc.headers,
|
|
|
887 |
)
|
888 |
|
889 |
# Add the custom exception handler to your FastAPI app
|