python - 如何在 Google Playground 协作中使用 EndlessGPT2.py
问题描述
我应该使用什么命令在 EndlessGPT2 上编写文本输入?
我收到“无效语法”错误
我正在使用 Google Playground colab!!
我该怎么做才能修复语法错误?
from google.colab import drive
import sys
drive.mount('/content/gdrive/')
sys.path.append('/content/gdrive/EndlessGPT2.py')
!python EndlessGPT2.py
GPT2 Pytorch implementation by https://github.com/huggingface/transformers
Modified by @rrrffw
--text dog
SyntaxError: invalid syntax```
解决方案
推荐阅读
- c# - C# ADO.NET 参数化查询
- python - print 语句执行三次,而执行只执行一次
- python - 在忽略 NaN 的情况下连接 pandas DataFrame 中的列值
- git - 如何将新提交从旧存储库移动到新存储库
- windows - 命令提示符 Windows 10 中的变量行为异常
- perl - 回复:https://stackoverflow.com/questions/23937389/determine-parent-shell-from-perl/25139489
- django - 统计博客文章中的唯一词并将其保存在模型中
- ruby-on-rails - Wkhtmltopdf 命令错误:使用 Chart.js 响应:错误选项
- gitlab-ci - Gitlab-CI 无法克隆
- c# - 以私密模式启动 Url