Bili-Insight / app.py
yfor's picture
Update app.py
ce37267
raw
history blame contribute delete
485 Bytes
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()