More AI stuff on demos ez prod hard
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 requests | |
def flatten_list(_2d_list): | |
flat_list = [] | |
# Iterate through the outer list | |
for element in _2d_list: | |
if type(element) is list: | |
# If the element is of type list, iterate through the sublist | |
for item in element: | |
flat_list.append(item) |
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
const addMaticToMetamask: () => void = () => { | |
const { ethereum, phantom } = window as any; | |
if (ethereum) { | |
ethereum | |
.request({ | |
method: 'wallet_addEthereumChain', | |
params: [ | |
{ | |
chainId: '0x89', | |
chainName: 'Polygon Network', |
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 logging | |
from telegram import Update | |
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler | |
from openai import OpenAI | |
openai = OpenAI(api_key=os.environ['OPENAI_API_KEY']) | |
tg_bot_token = os.environ['TG_BOT_TOKEN'] | |
messages = [{ |
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 pandas as pd | |
import os | |
import tiktoken | |
from openai import OpenAI | |
from langchain.text_splitter import RecursiveCharacterTextSplitter | |
openai = OpenAI(api_key=os.environ['OPENAI_API_KEY']) | |
DOMAIN = "developer.mozilla.org" |
Dive right into [Blockchain Name] to start building or set up your tooling.
Instructions on installing the necessary CLI tools to get your local development environment ready.
Guide to building and deploying your first on-chain program using [Blockchain Name] Playground or a similar browser-based IDE.
Build a strong understanding of the core concepts that distinguish [Blockchain Name] from other blockchains.
- Discussions around AI ethics and its application reveal varied perspectives, with Margaret Mitchell discussing the role of ethics in AI spurred by Google Gemini's launch.
- AI's influence on coding and programming skills is a hot topic, with John Carmack sharing thoughts on the transition from traditional coding to managing AI.
- Guillaume Lample announces the release of "Mistral Large", an improved model with multilingual capacities.
- AI-generated content and its potential dangers to web originality were discussed, predicting the end of 'view-source' by Pieter Levels.
- The potential change in Google's CEO position is speculated upon, highlighting Sundar Pichai's contributions and f
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
# functions.py entire file | |
import os | |
import requests | |
from cairosvg import svg2png | |
from openai import OpenAI | |
from dotenv import load_dotenv | |
load_dotenv() |
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 logging | |
from telegram import Update | |
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler | |
from openai import OpenAI | |
import pandas as pd | |
import numpy as np | |
from questions import answer_question |
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 cairosvg import svg2png | |
def svg_to_png_bytes(svg_string): | |
# Convert SVG string to PNG bytes | |
png_bytes = svg2png(bytestring=svg_string.encode('utf-8')) | |
return png_bytes | |
def python_math_execution(math_string): |
OlderNewer