1MR commited on
Commit
3b3bea3
·
verified ·
1 Parent(s): b066129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -23,8 +23,6 @@ import shutil
23
  import os
24
  from fastapi import FastAPI, File, UploadFile
25
 
26
- vector_index = None
27
-
28
  app = FastAPI()
29
 
30
  @app.get("/")
@@ -57,7 +55,7 @@ tavily_search = TavilySearchResults(max_results=4)
57
 
58
  @app.post("/uploadpdfs")
59
  async def upload_file(file: UploadFile = File(...)):
60
- global vector_index
61
 
62
  # Save uploaded file to a temp directory
63
  temp_dir = "temp_uploads"
@@ -135,8 +133,7 @@ Provide answers directly related to the question, without additional explanation
135
 
136
  tools=[retrieve,tavily_search]
137
 
138
- model = ChatGroq(
139
- model="qwen-qwq-32b")
140
 
141
  agent = Agent(model, tools, memory, system=system_Prompt)
142
 
 
23
  import os
24
  from fastapi import FastAPI, File, UploadFile
25
 
 
 
26
  app = FastAPI()
27
 
28
  @app.get("/")
 
55
 
56
  @app.post("/uploadpdfs")
57
  async def upload_file(file: UploadFile = File(...)):
58
+ # global vector_index
59
 
60
  # Save uploaded file to a temp directory
61
  temp_dir = "temp_uploads"
 
133
 
134
  tools=[retrieve,tavily_search]
135
 
136
+ model = ChatGroq(model="qwen-qwq-32b")
 
137
 
138
  agent = Agent(model, tools, memory, system=system_Prompt)
139