Spaces:
Build error
Build error
Create app.py
Browse files
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)
|