muhyzatar commited on
Commit
a126962
1 Parent(s): 555c091

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gpt_s import GPT
3
+
4
+ a_gpt = GPT()
5
+ a_gpt.extract_insights(paragraph)
6
+
7
+ def process(input_text):
8
+ return a_gpt.extract_insights(paragraph)
9
+
10
+ iface = gr.Interface(
11
+ fn=process,
12
+ inputs=gr.inputs.Textbox(lines=10, placeholder="Enter a big chunk of text here..."),
13
+ outputs=gr.outputs.Textbox(lines=5, placeholder="Processed paragraph will appear here..."),
14
+ title="Summarizer",
15
+ description="This interface takes a large chunk of text and returns a processed paragraph."
16
+ )
17
+
18
+ iface.launch()