Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to the application that allows users to analyze videos using Azure OpenAI Services. The most important changes include the creation of a new
VideoAnalyzerController
that handles video analysis requests, aVideoAnalyzerModel
that stores the results of the analysis, and updates to the application's views to provide a user interface for this new functionality.New Feature Implementation:
src/AIHub/Controllers/VideoAnalyzerController.cs
: Created a new controller for handling video analysis requests. This includes methods for uploading videos, analyzing them using Azure OpenAI Services, and returning the results to the user.src/AIHub/Models/VideoAnalyzerModel.cs
: Created a new model to store the results of the video analysis, including the video URL and the analysis message.User Interface Updates:
src/AIHub/Views/Shared/_Layout.cshtml
: Updated the navigation bar to include a link to the new video analyzer feature.src/AIHub/Views/Shared/_VideoAnalyzerScriptsPartial.cshtml
: Included scripts necessary for the video analyzer feature's user interface.src/AIHub/Views/VideoAnalyzer/VideoAnalyzer.cshtml
: Created a new view for the video analyzer feature, allowing users to upload videos and view the results of the analysis.Configuration Updates:
src/AIHub/appsettings.template.json
: Added new configuration options for the video analyzer feature, including endpoints and keys for Azure OpenAI Services.Client-side Script:
src/AIHub/wwwroot/js/ui/videoanalyzer.js
: Added a new JavaScript file to handle the client-side functionality of the video analyzer feature, including file uploads and displaying analysis results.This pull request introduces a new Video Analyzer feature to the application. The feature uses Azure OpenAI Services and Azure Vision & Cognitive Services to analyze videos and provide comprehensive data about them. The most significant changes include the creation of a newVideoAnalyzerController
, a newVideoAnalyzerModel
, and updates to the UI to accommodate the new feature.New Feature Implementation:
src/AIHub/Controllers/VideoAnalyzerController.cs
: Created a newVideoAnalyzerController
which handles video analysis. The controller uses configuration values for various API endpoints and keys, interacts with Azure Blob Storage, and makes HTTP requests to the relevant APIs for video analysis. It also includes methods for uploading videos and analyzing them.src/AIHub/Models/VideoAnalyzerModel.cs
: Created a newVideoAnalyzerModel
which holds the results of the video analysis.UI Changes:
src/AIHub/Views/Shared/_VideoAnalyzerScriptsPartial.cshtml
: Added scripts required for the video analyzer UI.src/AIHub/Views/VideoAnalyzer/VideoAnalyzer.cshtml
: Created a new view for the video analyzer feature. The view includes a form for uploading videos and displaying the results of the analysis.src/AIHub/wwwroot/js/ui/videoanalyzer.js
: Added a new JavaScript file for handling the video upload and analysis functionality on the client side.Configuration Changes:
src/AIHub/appsettings.template.json
: Added new configuration values for theVideoAnalyzer
feature, including the OpenAI endpoint, Vision API endpoint, Vision Key, OpenAI Subscription Key, Container Name, and Deployment Name.