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
!curl -O https://calmcode.io/datasets/pokemon.json | |
import pandas | |
import weave | |
from weave.ecosystem import openai | |
from weave.ecosystem import umap | |
from weave.ecosystem import hdbscan | |
raw_data = pandas.read_json('./pokemon.json') |
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 pyaudio | |
import wave | |
import requests | |
import os | |
import sys | |
import webrtcvad | |
def record_audio(filename, duration=5): | |
vad = webrtcvad.Vad(1) # Set aggressiveness from 0 to 3 | |
sample_rate = 16000 # Sample rate suitable for VAD |
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 flask import Flask, request, jsonify, send_file | |
import tempfile | |
import whisper | |
import gtts | |
import os | |
from openai import OpenAI | |
client = OpenAI() | |
conversation = [] |
OlderNewer