not-lain commited on
Commit
322cf95
·
verified ·
1 Parent(s): 71a21b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -1,13 +1,7 @@
1
- from transformers import pipeline
2
- import gradio as gr
3
- import os
4
-
5
- token = os.environ["HF_TOKEN"]
6
-
7
- pipe = pipeline("text-generation", model="openai-community/gpt2")
8
 
9
  def generate(text):
10
- return pipe(text)[0]["generated_text"]
11
 
12
 
13
 
 
1
+ import gradio as gr
 
 
 
 
 
 
2
 
3
  def generate(text):
4
+ return text
5
 
6
 
7