Update app.py
Browse files1123444 unmodified lines49505152535455565758595253545556575859606162636465656667import gradio as grimport gradio.components as grimport openaiimport osimport re44 unmodified lines
iface = gr.Interface( fn=process_article, inputs=gr.inputs.Textbox(lines=20, label="Enter article text"), outputs=[ gr.outputs.Textbox(label="Top 3 Thought-Provoking Questions"), gr.outputs.Textbox(label="Single Sentence Summary"), gr.outputs.Textbox(label="Story in Tweets"), gr.outputs.Textbox(label="Most Interesting Moment"), gr.outputs.Textbox(label="Futurist Prediction Presented as a Question") ], inputs=gr.components.Input(lines=20, label="Enter article text"),outputs=[ gr.components.Output(label="Top 3 Thought-Provoking Questions"), gr.components.Output(label="Single Sentence Summary"), gr.components.Output(label="Story in Tweets"), gr.components.Output(label="Most Interesting Moment"), gr.components.Output(label="Futurist Prediction Presented as a Question")],
title="Article and Video Transcript Content", description="Enter an article for potential publishing content written in the Freethink Media voice.", css=css # Add the custom CSS )
iface.launch(share=True, debug=True, inbrowser=True)iface.launch(debug=True, inbrowser=True)
app.py+12-10