Spaces:
Sleeping
Sleeping
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() |