Spaces:
Sleeping
Sleeping
File size: 492 Bytes
a126962 792a6fc a126962 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from gpt_s import GPT
a_gpt = GPT()
def process(input_text):
return a_gpt.extract_insights(input_text)
iface = gr.Interface(
fn=process,
inputs=gr.inputs.Textbox(lines=10, placeholder="Enter a big chunk of text here..."),
outputs=gr.outputs.Textbox(lines=5, placeholder="Processed paragraph will appear here..."),
title="Summarizer",
description="This interface takes a large chunk of text and returns a processed paragraph."
)
iface.launch() |