Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,20 +1,36 @@
|
|
| 1 |
---
|
| 2 |
-
title: Step
|
| 3 |
-
emoji: 🚀
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
| 8 |
-
tags:
|
| 9 |
-
- streamlit
|
| 10 |
pinned: false
|
| 11 |
-
short_description: Streamlit template space
|
| 12 |
license: apache-2.0
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Step-3.5-Flash Chatbot
|
| 3 |
+
emoji: "🚀"
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
app_port: 8501
|
|
|
|
|
|
|
| 8 |
pinned: false
|
|
|
|
| 9 |
license: apache-2.0
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Step-3.5-Flash Chatbot
|
| 13 |
|
| 14 |
+
基于 [stepfun-ai/Step-3.5-Flash](https://huggingface.co/stepfun-ai/Step-3.5-Flash) 模型的智能对话助手,使用官方 API。
|
| 15 |
|
| 16 |
+
## 特性
|
| 17 |
+
|
| 18 |
+
- 左右分栏布局:左侧展示思考过程,右侧展示对话
|
| 19 |
+
- 多轮对话支持
|
| 20 |
+
- 流式输出
|
| 21 |
+
- 可调节参数(temperature, top_p, max_tokens)
|
| 22 |
+
- 支持最大 128k context
|
| 23 |
+
|
| 24 |
+
## 环境变量
|
| 25 |
+
|
| 26 |
+
在 HuggingFace Space 的 Settings > Repository secrets 中设置:
|
| 27 |
+
|
| 28 |
+
- [`STEPFUN_API_KEY`](https://platform.stepfun.com/interface-key): StepFun 官方 API Key [https://platform.stepfun.com/interface-key](https://platform.stepfun.com/interface-key)
|
| 29 |
+
|
| 30 |
+
## 本地运行
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
export STEPFUN_API_KEY="your-api-key"
|
| 34 |
+
pip install streamlit httpx
|
| 35 |
+
streamlit run app.py
|
| 36 |
+
```
|