Abhaykoul commited on
Commit
f888e94
·
verified ·
1 Parent(s): 96244d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -161,16 +161,6 @@ async def answers(q: str, proxy: Optional[str] = None):
161
  except Exception as e:
162
  raise HTTPException(status_code=500, detail=f"Error getting instant answers: {e}")
163
 
164
- @app.get("/api/suggestions")
165
- async def suggestions(q: str, region: str = "wt-wt", proxy: Optional[str] = None):
166
- """Get search suggestions for a query."""
167
- try:
168
- with WEBS(proxy=proxy) as webs:
169
- results = webs.suggestions(keywords=q, region=region)
170
- return JSONResponse(content=jsonable_encoder(results))
171
- except Exception as e:
172
- raise HTTPException(status_code=500, detail=f"Error getting search suggestions: {e}")
173
-
174
  @app.get("/api/chat")
175
  async def chat(
176
  q: str,
 
161
  except Exception as e:
162
  raise HTTPException(status_code=500, detail=f"Error getting instant answers: {e}")
163
 
 
 
 
 
 
 
 
 
 
 
164
  @app.get("/api/chat")
165
  async def chat(
166
  q: str,