async def main(): video_indexer = await AsyncVideoIndexer.create( os.environ.get("VIDEO_INDEXER_ACCOUNT_ID"), os.environ.get("VIDEO_INDEXER_KEY"), os.environ.get("VIDEO_INDEXER_ACCOUNT_LOCATION"), )
video_to_upload = (
BING_SEARCH_KEY=<the search key you copied earlier> | |
BING_SEARCH_ENDPOINT=https://api.bing.microsoft.com/ |
import os | |
import textwrap | |
import requests | |
import pyshorteners | |
from tabulate import tabulate | |
def clean_trending_article_dictionary(article_dictionary): | |
"""Take a dictionary for a trending article, and tweak the output.""" |
import click | |
@click.group() | |
def cli(): | |
"""A CLI to search for news articles using Bing News, and return appropriate articles.""" | |
@cli.command("phrase") | |
@click.option("-p", "--search_phrase", prompt="What phrase are you searching for?") | |
def search_bing_by_phrase(search_phrase): |
# URL: www.sealjay.com/unlocking-content-with-summaries-and-insight/ | |
from diagrams import Cluster, Diagram, Edge | |
from diagrams.programming.language import Csharp, Python | |
from diagrams.azure.ml import CognitiveServices | |
from diagrams.azure.web import Search, AppServices, AppServicePlans | |
from diagrams.azure.storage import BlobStorage | |
from diagrams.azure.integration import LogicApps | |
from diagrams.generic.storage import Storage | |
from diagrams.azure.compute import FunctionApps | |
from diagrams.onprem.compute import Server |
async def main(): video_indexer = await AsyncVideoIndexer.create( os.environ.get("VIDEO_INDEXER_ACCOUNT_ID"), os.environ.get("VIDEO_INDEXER_KEY"), os.environ.get("VIDEO_INDEXER_ACCOUNT_LOCATION"), )
video_to_upload = (
from asyncvideoindexer import AsyncVideoIndexer | |
VIDEO_INDEXER_ACCOUNT_ID = "your-account-id" | |
VIDEO_INDEXER_KEY = "your-account-key" | |
VIDEO_INDEXER_ACCOUNT_LOCATION = "your-account-location" | |
async def get_video_indexer(): | |
video_indexer = await AsyncVideoIndexer.AsyncVideoIndexer.create( | |
VIDEO_INDEXER_ACCOUNT_ID, |
{ | |
"name": "docindexer", | |
"description": null, | |
"dataSourceName": "docs", | |
"skillsetName": "mergetext", | |
"targetIndexName": "uklegislation", | |
"disabled": null, | |
"schedule": null, | |
"parameters": { | |
"batchSize": null, |
{ | |
"name": "mergetext", | |
"description": "Extract text from images and merge with content text to produce merged_text", | |
"skills": [ | |
{ | |
"@odata.type": "#Microsoft.Skills.Vision.OcrSkill", | |
"name": "#1", | |
"description": "Extract text (plain and structured) from image.", | |
"context": "/document/normalized_images/*", | |
"textExtractionAlgorithm": null, |
name: OSS Licence Compliance | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [assigned, opened, reopened] | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" |