CaiRou-Huang commited on
Commit
4305889
1 Parent(s): cddf551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipe = pipeline("text-generation", model="gpt2")
5
 
6
  def predict(prompt):
7
  completion = model(prompt)[0]["generated_text"]
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipe = pipeline("text-generation")
5
 
6
  def predict(prompt):
7
  completion = model(prompt)[0]["generated_text"]