ParthSadaria commited on
Commit
006f05b
·
verified ·
1 Parent(s): aecb8a6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -4
main.py CHANGED
@@ -31,10 +31,12 @@ class Payload(BaseModel):
31
  model: str
32
  messages: list
33
  stream: bool
34
-
35
- import requests
36
- import json
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 = [