File size: 485 Bytes
5ad9b5e
ce37267
5ad9b5e
48f77cf
5ad9b5e
 
ca9ad95
5ad9b5e
3b4d54a
 
ce37267
5ad9b5e
310c33d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
from gpt_analyze import summary_text

iface = gr.Interface(fn=summary_text, inputs=[
    gr.components.Textbox(label='Your text',
                          lines=5,
                          placeholder='The text that needs to be summarized',
                          max_lines=100),
    gr.components.Textbox(label='api key',
                          placeholder='apikey from openai',
                          type="password")
], outputs="text")
iface.launch()