Yuhang Zhou
commited on
Commit
·
eccad16
1
Parent(s):
9bb4c79
Update README_zh.md
Browse files- README_zh.md +13 -0
README_zh.md
CHANGED
@@ -166,6 +166,19 @@ answer, chat_history, token_count = run_society(society)
|
|
166 |
logger.success(f"Answer: {answer}")
|
167 |
```
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
你可以尝试以下示例任务:
|
170 |
- "查询苹果公司的最新股票价格"
|
171 |
- "分析关于气候变化的最新推文情绪"
|
|
|
166 |
logger.success(f"Answer: {answer}")
|
167 |
```
|
168 |
|
169 |
+
上传文件时,只需在问题中额外提供文件路径:
|
170 |
+
|
171 |
+
```python
|
172 |
+
# 处理本地文件(例如,文件路径为 `tmp/example.docx`)
|
173 |
+
question = "给定的 DOCX 文件中有什么内容?文件路径如下:tmp/example.docx"
|
174 |
+
|
175 |
+
society = construct_society(question)
|
176 |
+
answer, chat_history, token_count = run_society(society)
|
177 |
+
|
178 |
+
logger.success(f"答案:{answer}")
|
179 |
+
```
|
180 |
+
OWL 将自动调用与文档相关的工具来处理文件并提取答案。
|
181 |
+
|
182 |
你可以尝试以下示例任务:
|
183 |
- "查询苹果公司的最新股票价格"
|
184 |
- "分析关于气候变化的最新推文情绪"
|