-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53d050a
commit 2693d4d
Showing
2 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[![My Skills](https://skillicons.dev/icons?i=nextjs,tailwind,react,python,flask)](https://skillicons.dev) | ||
|
||
# ChatFiles | ||
**上传文件然后与之对话.** | ||
|
||
## 如何使用 | ||
1. 克隆此存储库。 | ||
2. 在根路径上创建 .env 文件。 | ||
3. 将您的 OpenAI Key 放入 .env 文件中,使用 OPENAI_API_KEY='您的令牌'。 | ||
|
||
使用 docker compose 启动项目 | ||
```shell | ||
docker compose up | ||
``` | ||
|
||
打开浏览器输入: http://localhost:3000 | ||
|
||
### 与文件对话 | ||
上传文件。 | ||
问与文件有关的内容。 | ||
|
||
### 与 GPT 对话 | ||
直接发送消息,而无需上传文件。 | ||
|
||
## 如何本地运行 | ||
### chatfiles-ui | ||
|
||
```shell | ||
cd chatfiles-ui | ||
npm install | ||
npm run dev | ||
``` | ||
|
||
### chatfiles | ||
```shell | ||
cd chatfiles | ||
``` | ||
|
||
创建一个名为 .env的文件,里面设置值为(OPENAI_API_KEY=your token) | ||
|
||
```shell | ||
python3 server.py | ||
``` |