Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -31,10 +31,12 @@ class Payload(BaseModel):
|
|
31 |
model: str
|
32 |
messages: list
|
33 |
stream: bool
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
38 |
def generate_search(query: str, stream: bool = True) -> str:
|
39 |
headers = {"User-Agent": ""}
|
40 |
prompt = [
|
|
|
31 |
model: str
|
32 |
messages: list
|
33 |
stream: bool
|
34 |
+
@app.get("/favicon.ico")
|
35 |
+
async def favicon():
|
36 |
+
# The favicon.ico file is in the same directory as the app
|
37 |
+
favicon_path = Path(__file__).parent / "favicon.ico"
|
38 |
+
return FileResponse(favicon_path, media_type="image/x-icon")
|
39 |
+
|
40 |
def generate_search(query: str, stream: bool = True) -> str:
|
41 |
headers = {"User-Agent": ""}
|
42 |
prompt = [
|