Skip to content

Commit 135d277

Browse files
committed
build 0.0.1
1 parent abab9cb commit 135d277

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
## 功能
66

77
- FastAPI
8-
98
- 查询最新的中国银行外汇汇率
109
- 支持多种货币转换
1110
- 实时数据更新和异步缓存
@@ -21,13 +20,18 @@ pip install -r requirements.txt
2120
2221
# Start Uvicorn server
2322
uvicorn main:app --host 0.0.0.0 --port 7860 --reload
23+
24+
ngrok http 7860
2425
```
2526

26-
## hf space部署说明
27+
记得更改`.env``TELEGRAM_BOT_TOKEN``WEBHOOK_URL`
28+
29+
## hf space 部署说明
2730

2831
此项目已配置为在 Hugging Face Space 上运行。部署后,您需要:
2932

3033
1. 在 Space 设置中配置以下环境变量:
34+
3135
- `TELEGRAM_BOT_TOKEN`: 您的 Telegram 机器人令牌
3236
- `WEBHOOK_URL`: 您的 Hugging Face Space URL (例如 https://yourname-project.hf.space)
3337
- `CACHE_TTL_MINUTES`: 缓存超时时间(分钟)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.0.0
1+
version=0.0.1

0 commit comments

Comments
 (0)