Minecraft3193092 commited on
Commit
089b63a
1 Parent(s): 297e922

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import json
5
  import requests
6
  from transformers import pipeline
7
 
8
- nlp = pipeline("text-generation", model="gpt3", tokenizer="gpt3", device=0) # 指定GPU设备,可选参数
9
 
10
  # 生成文本
11
  response = nlp("Translate English to French: I love programming.")
 
5
  import requests
6
  from transformers import pipeline
7
 
8
+ nlp = pipeline("text-generation", model="@xenova/gpt-3.5-turbo", tokenizer="@xenova/gpt-3.5-turbo", device=0) # 指定GPU设备,可选参数
9
 
10
  # 生成文本
11
  response = nlp("Translate English to French: I love programming.")