Spaces:
Build error
Build error
Download test.py from liuyimeta/training_data_chat: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/liuyimeta/training_data_chat/resolve/main/test.py
- Command line
-
hf download hf://spaces/liuyimeta/training_data_chat/test.py
-
curl -L -o test.py https://huggingface.co/spaces/liuyimeta/training_data_chat/resolve/main/test.py
299 Bytes
| # -*- coding: utf-8 -*- | |
| import time | |
| from base_chat import * | |
| # 进行向量化操作 | |
| # ques = 'embed' | |
| # rs = embed_record() | |
| # print(rs) | |
| ques = "南京在哪里" | |
| # t1 = time.time() | |
| result = run_question(ques) | |
| # t2 = time.time() | |
| print(result) | |
| # print("回答问题耗时:%s 毫秒" % (t2-t1)*1000) | |