Skip to content

Commit c6173bc

Browse files
committed
fix a bit
1 parent b97dce3 commit c6173bc

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

azure_ai_vision.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
AZURE_AI_VISION_API_KEY="<your-api-key>"
21
AZURE_AI_VISION_ENDPOINT="<your-endpoint>"
2+
AZURE_AI_VISION_API_KEY="<your-api-key>"

backend/internals/azure_ai_vision.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def analyze_image(
2727
result = image_analysis_client.analyze(
2828
image_data=image,
2929
visual_features=[
30-
VisualFeatures.CAPTION,
3130
VisualFeatures.READ,
3231
],
3332
)

infra/main.bicep

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module cognitiveServices './modules/cognitiveServices.bicep' = {
4545
sku: {
4646
name: 'S0'
4747
}
48-
customSubDomainName: toLower(openAiName)
48+
customSubDomainName: toLower(cognitiveServicesName)
4949
location: location
5050
tags: tags
5151
}
@@ -72,3 +72,12 @@ module eventGrid './modules/eventGrid.bicep' = {
7272
tags: tags
7373
}
7474
}
75+
76+
// Output
77+
output cognitiveServicesName string = cognitiveServices.outputs.name
78+
output cognitiveServicesEndpoint string = cognitiveServices.outputs.endpoint
79+
output eventGridTopicName string = eventGrid.outputs.eventGridTopicName
80+
output eventGridTopicEndpoint string = eventGrid.outputs.eventGridTopicEndpoint
81+
output openAiName string = openAi.outputs.name
82+
output openAiEndpoint string = openAi.outputs.endpoint
83+
output storageAccountName string = storageAccount.outputs.name

infra/modules/eventGrid.bicep

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ resource eventGridTopic 'Microsoft.EventGrid/topics@2024-06-01-preview' = {
2424
minimumTlsVersionAllowed: '1.0'
2525
}
2626
}
27+
28+
// Outputs
29+
output eventGridTopicId string = eventGridTopic.id
30+
output eventGridTopicName string = eventGridTopic.name
31+
output eventGridTopicEndpoint string = eventGridTopic.properties.endpoint

0 commit comments

Comments
 (0)