Spaces:
Sleeping
Sleeping
File size: 1,500 Bytes
9bbddc7 8cbe088 9bbddc7 8cbe088 9bbddc7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
title: AI Town on HuggingFace
emoji: ๐ ๐โโฌ
colorFrom: green
colorTo: red
sdk: docker
app_port: 5173
pinned: false
disable_embedding: true
# header: mini
short_description: AI Town on HuggingFace
hf_oauth: true
---
# AI Town ๐ ๐ป๐ on Hugging Face ๐ค
[**Demo on Hugging Face Spaces**](https://huggingface.co/spaces/radames/ai-town)
AI Town is a very cool project by [Yoko](https://github.com/ykhli) et [al.](https://github.com/a16z-infra/ai-town), a virtual town with live AI characters where they can chat and socialize. You can also interact with them by sending them messages.
This repository contains a few code patches to make AI Town run on [Hugging Face ๐ค Spaces](https://huggingface.co/spaces), as well as a Dockerfile capable of running [Convex open-source backend](https://github.com/get-convex/convex-backend), the backend and frontend on a single container.
## How to run locally
Grab your Hugging Face API token from https://huggingface.co/settings/tokens
```bash
export HF_TOKEN=hf_**********
docker build -t ai-town -f Dockerfile .
docker run -ti -p 5173:5173 -e LLM_API_KEY=$HF_TOKEN ai-town
```
## How to run on Hugging Face
You can duplicate this Space https://huggingface.co/spaces/radames/ai-town?duplicate=true, add your `HF_TOKEN`
Then you can customize [patches/constants.ts](patches/constants.ts) and [patches/characters.ts](patches/characters.ts) as you wish, as well as the LLM model and embeddings model in [patches/llm.ts](patches/llm.ts).
|