Spaces:
Sleeping
Sleeping
罗峰
commited on
Commit
·
7b5e727
1
Parent(s):
f8613bb
app commit
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ OPENAI_API_BASE=os.getenv("OPENAI_API_BASE")
|
|
16 |
DEP_NAME=os.getenv("deployment_name")
|
17 |
llm=AzureChatOpenAI(deployment_name=DEP_NAME,openai_api_base=OPENAI_API_BASE,openai_api_key=OPENAI_API_KEY,openai_api_version="2023-03-15-preview",model_name="gpt-3.5-turbo")
|
18 |
|
|
|
19 |
image_to_text_model="Salesforce/blip-image-captioning-large"
|
20 |
device= 'cuda' if torch.cuda.is_available() else 'cpu'
|
21 |
|
|
|
16 |
DEP_NAME=os.getenv("deployment_name")
|
17 |
llm=AzureChatOpenAI(deployment_name=DEP_NAME,openai_api_base=OPENAI_API_BASE,openai_api_key=OPENAI_API_KEY,openai_api_version="2023-03-15-preview",model_name="gpt-3.5-turbo")
|
18 |
|
19 |
+
|
20 |
image_to_text_model="Salesforce/blip-image-captioning-large"
|
21 |
device= 'cuda' if torch.cuda.is_available() else 'cpu'
|
22 |
|