Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -70,7 +70,7 @@ def generate_search(query: str, stream: bool = True) -> str:
|
|
70 |
yield streaming_text
|
71 |
|
72 |
@app.get("/searchgpt")
|
73 |
-
async def search_gpt(q: str, stream: Optional[bool] =
|
74 |
if not q:
|
75 |
raise HTTPException(status_code=400, detail="Query parameter 'q' is required")
|
76 |
|
|
|
70 |
yield streaming_text
|
71 |
|
72 |
@app.get("/searchgpt")
|
73 |
+
async def search_gpt(q: str, stream: Optional[bool] = False):
|
74 |
if not q:
|
75 |
raise HTTPException(status_code=400, detail="Query parameter 'q' is required")
|
76 |
|