首页 > 解决方案 > 如何在 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```

标签: pythongoogle-colaboratory

解决方案


推荐阅读