Lavanya75 commited on
Commit
4ed761b
·
verified ·
1 Parent(s): 5bd87c4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ classifier = pipeline("text-generation")
5
+
6
+ gr.Interface(
7
+ fn=classifier,
8
+ inputs="text",
9
+ outputs="text",
10
+ title="Hugging Face Text Generation"
11
+ ).launch(share=True)