Skip to content

Instantly share code, notes, and snippets.

@schroneko
schroneko / ic-light-colab-zho-jp.ipynb
Created May 9, 2024 05:53
IC-Light Colab【-Zho-制作】jp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Anthropic Cookbook ひとことまとめ

The Bible

https://github.com/anthropics/anthropic-cookbook

misc

read_web_pages_with_haiku.ipynb: PythonでAnthropicのClaude APIを使用してWebページのコンテンツを要約する方法を説明しています。

@schroneko
schroneko / main.py
Created January 4, 2024 02:34
test: oshizo/japanese-sexual-moderation-v2
## https://huggingface.co/oshizo/japanese-sexual-moderation-v2
## How to use
## $ python3 -m venv venv && source venv/bin/activate
## $ pip install transformers torch sentencepiece
## $ python main.py --input "富士山は日本で一番高い山です。"
import torch
import argparse
from transformers import AutoModelForSequenceClassification, AutoTokenizer
export const hello = () => {
console.log('hello')
}