Spaces:
Build error
Build error
yashasgupta
commited on
Commit
•
5182eb0
1
Parent(s):
0fda47d
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from langchain.prompts import ChatPromptTemplate
|
|
10 |
os.environ["OPENAI_API_KEY"] = os.getenv("k1")
|
11 |
|
12 |
# Initialize OpenAI with LangChain
|
13 |
-
llm = OpenAI(api_key=os.environ["OPENAI_API_KEY"], model="
|
14 |
|
15 |
# Prompt template for image captioning
|
16 |
caption_template = """
|
|
|
10 |
os.environ["OPENAI_API_KEY"] = os.getenv("k1")
|
11 |
|
12 |
# Initialize OpenAI with LangChain
|
13 |
+
llm = OpenAI(api_key=os.environ["OPENAI_API_KEY"], model="Salesforce/blip-image-captioning-large", temperature=0)
|
14 |
|
15 |
# Prompt template for image captioning
|
16 |
caption_template = """
|