This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from KalturaClient import KalturaClient | |
from KalturaClient.Base import KalturaConfiguration | |
from KalturaClient.Plugins.Metadata import KalturaMetadataObjectType, KalturaMetadata | |
from KalturaClient.Plugins.Core import KalturaMediaEntry, KalturaMediaType | |
import xml.etree.ElementTree as ET | |
# Initialize Kaltura configuration and client | |
config = KalturaConfiguration() | |
config.serviceUrl = "https://cdnapi-ev.kaltura.com/" | |
client = KalturaClient(config) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"PARTNER_ID": 0000, | |
"ADMIN_SECRET": "REPLACE_ME_KMC_SETTINGS_ADMIN_SECRET", | |
"SCRIPT_USER_ID": "kapptoken-mgr", | |
"ADMIN_SESSION_EXPIRY": 1800, | |
"KALTURA_SERVICE_URL": "https://cdnapi-ev.kaltura.com" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Google Drive Media Extractor for Kaltura Upload: | |
This script processes a specified Google Drive folder to identify media files | |
(audio, video, and images) and produces a CSV file suitable for bulk upload | |
to the Kaltura platform. It recursively traverses through all subfolders, | |
captures metadata about the media files, and appends them to the CSV. Media | |
files are determined based on their MIME type. | |
Author Metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05232023 Build Andrej Karpathy Session | |
Build 2023 | |
Andrej Karpathy | |
Tuesday, May 23, 2023 | |
ANDREJ KARPATHY: Hi, everyone. I’m happy to be here to tell you about the state of GPT. And more generally, about the rapidly growing ecosystem of large language models. So I would like to partition the talk into two parts. | |
In the first part, I would like to tell you about how we train GPT assistants. And then in the second part, we are going to take a look at how we can use these assistants effectively for your applications. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
from llama_index import ( | |
download_loader, | |
GPTVectorStoreIndex, | |
LLMPredictor, | |
ServiceContext | |
) | |
from langchain.llms import OpenAI | |
from KalturaClient.Plugins.Core import KalturaMediaType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import sys | |
from llama_index import ( | |
download_loader, | |
GPTVectorStoreIndex, | |
LLMPredictor, | |
ServiceContext, | |
PromptHelper, | |
load_index_from_storage, | |
StorageContext |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basePath": "/api_v3", | |
"definitions": { | |
"KalturaABCScreenersWatermarkCondition": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/KalturaCondition" | |
} | |
], | |
"properties": {}, |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Kaltura Video Experience Cloud API", | |
"description": "Kaltura Media Services offers a feature-rich API for seamless integration of high-quality video streaming and management. It provides scalability, flexibility, and extensive customization options, empowering developers to build robust media-centric applications.", | |
"version": "19.4.0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://cdnapi-ev.kaltura.com/api_v3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
def merge_lines(srt_file): | |
# Read in the SRT file | |
with open(srt_file, 'r') as f: | |
srt = f.read() | |
# Merge consecutive lines in each caption block | |
merged_srt = re.sub(r'\d+\n(\d\d:\d\d:\d\d,\d+ --> \d\d:\d\d:\d\d,\d+\n)?(.*?\n\n)', lambda match: match.group(2).replace('\n', ' ') + '\n', srt, flags=re.S) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0;"><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://cdnapisec.kaltura.com/p/2539171/sp/253917100/embedIframeJs/uiconf_id/44037791/partner_id/2539171?iframeembed=true&playerId=kaltura_player_1556142794&entry_id=1_vqxvmjj6&flashvars[streamerType]=auto" width="560" height="400" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div> |