This file contains 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 deepgram import DeepgramClient, PrerecordedOptions, AnalyzeOptions | |
DEEPGRAM_API_KEY = "c54089a7b3d72c96a9f880d9e3a00aaf26322021" | |
TEXT = { | |
"buffer": "Enter your text here." | |
} | |
def dg_ttt(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 streamlit as st | |
data = "video.mp4" | |
st.write("Click to go to that moment in video.") | |
time_stamps = [ | |
(st.button("Part A", "a"), 1), # bool, moment (seconds) | |
(st.button("Part B", "b"), 20), | |
(st.button("Part C", "c"), 40), |
This file contains 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 os | |
import requests | |
def download_models(): | |
# Create MODELS folder if it doesn't exist | |
if not os.path.exists('../com.docker.devenvironments.code/MODELS'): | |
os.makedirs('../com.docker.devenvironments.code/MODELS') | |
# Dictionary of URLs and corresponding filenames | |
urls = { |
This file contains 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
""" | |
Filename: /home/dirk/dev/iCUE/iCUE-SmartScribe/langchain_sum.py | |
Path: /home/dirk/dev/iCUE/iCUE-SmartScribe | |
Created Date: Friday, April 21st 2023, 2:20:37 pm | |
Author: Dirk Liebich | |
Copyright (c) 2023 iCUE Solutions GmbH | |
""" | |
import os | |
import glob |
This file contains 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
''' | |
Filename: /home/dirk/dev/iCUE/iCUE-SmartScribe/langchain.py | |
Path: /home/dirk/dev/iCUE/iCUE-SmartScribe | |
Created Date: Monday, April 24th 2023, 12:37:32 pm | |
Author: Dirk Liebich | |
Copyright (c) 2023 iCUE Solutions GmbH | |
Example | |
https://github.com/hwchase17/langchain/issues/2491 |
This file contains 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
# FILEPATH: /tiktoken | |
import tiktoken | |
def num_tokens_from_string(string: str, encoding_name: str) -> int: | |
""" | |
Returns the number of tokens in a text string. | |
Args: | |
string (str): The text string to count tokens in. | |
encoding_name (str): The name of the encoding to use. |
This file contains 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 streamlit as st | |
from PIL import Image | |
import sys | |
from PIL import Image | |
# from termcolor import colored | |
ascii_variations = { | |
"variation1": ["B", "S", "#", "&", "@", "$", "%", "*", "!", ":", "."], | |
"variation2": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"], | |
"variation3": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-"], |
This file contains 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
# Sebastian Raschka 09/24/2022 | |
# Create a new conda environment and packages | |
# conda create -n whisper python=3.9 | |
# conda activate whisper | |
# conda install mlxtend -c conda-forge | |
# Install ffmpeg | |
# macOS & homebrew | |
# brew install ffmpeg | |
# Ubuntu |
This file contains 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
role_models = { | |
"For Boys": [ | |
{"name": "Lebron James", "description": "Famous African-American basketballer."}, | |
{"name": "MrBeast", "description": "Famous American YouTuber."}, | |
{"name": "Barack Obama", "description": "First Black president of the United States."}, | |
{"name": "Neil Armstrong", "description": "First man to walk on the moon."}, | |
{"name": "Jackie Chan", "description": "Famous martial artist and actor from Hong Kong."}, | |
{"name": "Mark Rober", "description": "Famous American former NASA Engineer and YouTuber."}, | |
{"name": "Kobe Bryant", "description": "Famous African-American basketballer."}, | |
{"name": "Rafael Nadal", "description": "Famous Spanish tennis player."}, |
NewerOlder