Dilana commited on
Commit
98f4712
1 Parent(s): 974fda1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipeline = pipeline(task="text-generation", model="Dilana/Babu_panchi")
5
+
6
+ def generate(input_text):
7
+ return pipeline(input_text)
8
+
9
+ iface = gr.Interface(fn = generate,
10
+ inputs = "text",
11
+ outputs = ['text'],
12
+ title = 'text generation',
13
+ description = "Get well structure prompt from given input")
14
+
15
+ iface.launch(inline = False)