File size: 456 Bytes
98f4712
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
from transformers import pipeline

pipeline = pipeline(task="text-generation", model="Dilana/Babu_panchi")

def generate(input_text):
    return pipeline(input_text)

iface = gr.Interface(fn = generate,
                    inputs = "text",
                    outputs = ['text'],
                    title = 'text generation',
                    description = "Get well structure prompt from given input")

iface.launch(inline = False)