alesamodio commited on
Commit
3cd0c0a
·
1 Parent(s): 7aad985

debug fetch gnews

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -15,6 +15,7 @@ from translate_query_response import (
15
 
16
  from app_nn import run_chat_app # your Socrates logic
17
 
 
18
  APP = FastAPI(title="Socrates API", version="1.0")
19
  APP.include_router(utils_router)
20
 
@@ -78,9 +79,6 @@ async def chat_send(req: Request):
78
  user_msg=message,
79
  )
80
 
81
- # Strip non-JSON stuff safely (without breaking internal use)
82
- reply = run_chat_app(...)
83
-
84
  if isinstance(reply, dict):
85
  news = reply.get("news_fetch")
86
  if isinstance(news, dict):
 
15
 
16
  from app_nn import run_chat_app # your Socrates logic
17
 
18
+
19
  APP = FastAPI(title="Socrates API", version="1.0")
20
  APP.include_router(utils_router)
21
 
 
79
  user_msg=message,
80
  )
81
 
 
 
 
82
  if isinstance(reply, dict):
83
  news = reply.get("news_fetch")
84
  if isinstance(news, dict):