Update main.py
Browse files
main.py
CHANGED
@@ -38,7 +38,7 @@ async def lifespan(app: FastAPI):
|
|
38 |
os.environ["LANGCHAIN_API_KEY"] = os.getenv("LANGCHAIN_API_KEY")
|
39 |
## load the Groq API key
|
40 |
os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
41 |
-
os.environ['HF_TOKEN']
|
42 |
global image_to_text
|
43 |
image_to_text = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
44 |
yield
|
|
|
38 |
os.environ["LANGCHAIN_API_KEY"] = os.getenv("LANGCHAIN_API_KEY")
|
39 |
## load the Groq API key
|
40 |
os.environ['GROQ_API_KEY'] = os.getenv("GROQ_API_KEY")
|
41 |
+
os.environ['HF_TOKEN'] = os.getenv("HF_TOKEN")
|
42 |
global image_to_text
|
43 |
image_to_text = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
|
44 |
yield
|