Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
|
5 |
-
pipeline = pipeline("text-generation", model="
|
6 |
gr.Interface.from_pipeline(pipeline).launch()
|
|
|
1 |
+
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
|
5 |
+
pipeline = pipeline("text-generation", model="openai-community/gpt2")
|
6 |
gr.Interface.from_pipeline(pipeline).launch()
|