Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,6 @@ import streamlit as st # Build the GUI of the application.
|
|
| 14 |
import torch # Load Salesforce/blip model(s) on GPU.
|
| 15 |
|
| 16 |
|
| 17 |
-
from dotenv import load_dotenv, find_dotenv # Read local .env file.
|
| 18 |
from langchain.chat_models import ChatOpenAI # Access to OpenAI gpt-3.5-turbo model.
|
| 19 |
from langchain.chains import LLMChain # Chain to run queries against LLMs.
|
| 20 |
|
|
@@ -26,7 +25,6 @@ from transformers import BlipProcessor, BlipForQuestionAnswering # VQA model in
|
|
| 26 |
#############################################################################################################################
|
| 27 |
# Load environment variable(s).
|
| 28 |
|
| 29 |
-
load_dotenv(find_dotenv()) # Read local .env file.
|
| 30 |
HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 31 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 32 |
|
|
|
|
| 14 |
import torch # Load Salesforce/blip model(s) on GPU.
|
| 15 |
|
| 16 |
|
|
|
|
| 17 |
from langchain.chat_models import ChatOpenAI # Access to OpenAI gpt-3.5-turbo model.
|
| 18 |
from langchain.chains import LLMChain # Chain to run queries against LLMs.
|
| 19 |
|
|
|
|
| 25 |
#############################################################################################################################
|
| 26 |
# Load environment variable(s).
|
| 27 |
|
|
|
|
| 28 |
HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 29 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 30 |
|