You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture. Knowledge cutoff: 2023-04 Current date: 2024-02-07
Image input capabilities: Enabled
let cred = JSON.parse(Deno.env.get("GOOGLE_APPLICATION_CREDENTIALS")); | |
// Big Query Style | |
export let bq = new BigQuery({ projectId, credentials: cred }); | |
// Vertex Style | |
let vertex_ai = new VertexAI({ project: "kora-id", location: "us-central1", | |
googleAuthOptions: { credentials: cred } }); |
from google.colab import userdata | |
key = userdata.get('MY_APY_KEY') |
import os | |
import sys | |
from contextlib import contextmanager | |
@contextmanager | |
def suppress_stdout(): | |
with open(os.devnull, 'w') as devnull: | |
original_stdout = sys.stdout | |
sys.stdout = devnull | |
try: |
!pip install playwright | |
!playwright install | |
# colab need this for async | |
import nest_asyncio | |
nest_asyncio.apply() | |
# start browser, not to use 'with' context | |
from playwright.async_api import async_playwright | |
playwright = await async_playwright().start() | |
browser = await playwright.chromium.launch() |
# see https://github.com/yifeikong/curl_cffi | |
from curl_cffi import requests |
!pip install claude2 | |
from claude import Claude | |
from fastcore.foundation import patch | |
from curl_cffi import requests | |
cookie = "sessionKey=sk-ant-sid01-4etj_0tI6RJKMbAAA" | |
claude = Claude(cookie) | |
@patch |
.pdf,.doc,.docx,.rtf,.epub,.odt,.odp,.pptx,.txt,.py,.ipynb,.js,.jsx,.html,.css, | |
.java,.cs,.php,.c,.cpp,.cxx,.h,.hpp,.rs,.R,.Rmd,.swift,.go,.rb,.kt,.kts,.ts,.tsx, | |
.m,.scala,.rs,.dart,.lua,.pl,.pm,.t,.sh,.bash,.zsh,.csv,.log,.ini,.config, | |
.json,.yaml,.yml,.toml,.lua,.sql,.bat,.md,.coffee,.tex,.latex | |
With grouping | |
Documents: .pdf, .doc, .docx, .rtf, .epub, .odt, .odp, .pptx, | |
.txt, .md, .html, .tex, .latex (13) |
The gpt-2 excutable is here
https://drive.google.com/file/d/1xeT75QmP8yKXo20mOyiUi5nP3dHcYY0U/view?usp=sharing
The model binary is here.
https://huggingface.co/ggerganov/ggml/resolve/main/ggml-model-gpt-2-117M.bin
You need to upload both to Code Interpreter.
us-docker.pkg.dev/colab-images/public/runtime | |
From research.google.com/colaboratory/local-runtimes.html |