Replies: 3 comments
-
Reloading javascript... This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces my_dict = {"name": "Alice", "age": 20, "city": "New York"}
# 遍历字典的keys
for key in my_dict.keys():
print(key)
# 遍历字典的values
for value in my_dict.values():
print(value)
# 遍历字典的keys和values
for key, value in my_dict.items():
print(key, value) 输出结果:
|
Beta Was this translation helpful? Give feedback.
-
应该是直接用命令行执行python chuanhu.py,不是作为服务运行,所以会卡住?我是这样设置的:
|
Beta Was this translation helpful? Give feedback.
-
能否后台服务的方式运行? |
Beta Was this translation helpful? Give feedback.
-
J:\chatbot\20230414\ChuanhuChatGPT-main (1)\ChuanhuChatGPT-main>python ChuanhuChatbot.py
2023-04-15 11:10:59,754 [INFO] [models.py:510] 正在加载OpenAI模型: gpt-3.5-turbo
2023-04-15 11:10:59,754 [INFO] [models.py:542] 模型设置为了: gpt-3.5-turbo
2023-04-15 11:11:00,377 [INFO] [utils.py:392] 您的IP区域:United States。
2023-04-15 11:11:00,463 [INFO] [ChuanhuChatbot.py:435]
川虎的温馨提示:访问 http://localhost:7860 查看界面
Reloading javascript...
Running on local URL: http://0.0.0.0:80
Running on public URL: https://afbc472d7a6cf1f8a0.gradio.live
This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
2023-04-15 11:11:03,270 [INFO] [models.py:510] 正在加载OpenAI模型: gpt-3.5-turbo
2023-04-15 11:11:03,278 [INFO] [models.py:542] 模型设置为了: gpt-3.5-turbo
2023-04-15 11:11:19,977 [INFO] [base_model.py:274] 输入为:test
2023-04-15 11:11:22,411 [INFO] [base_model.py:338] 回答为:This is a test response from an OpenAI language model. Please provide more information or a specific prompt so that I can better assist you.
2023-04-15 11:11:40,116 [INFO] [models.py:510] 正在加载OpenAI模型: gpt-3.5-turbo-0301
2023-04-15 11:11:40,116 [INFO] [models.py:542] 模型设置为了: gpt-3.5-turbo-0301
Beta Was this translation helpful? Give feedback.
All reactions