Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| # --- Main Execution --- | |
| if __name__ == "__main__": | |
| # Define the message and URLs for the notice | |
| notice_message = """ | |
| ## Important Notice: Application Migration | |
| This application has been successfully ported to Poe.com! | |
| We recommend using the new versions for an enhanced experience. | |
| Please find the updated applications below: | |
| """ | |
| # Create a Gradio Blocks interface | |
| with gr.Blocks(title="ePub Summarizer - Migrated") as demo: | |
| gr.Markdown(notice_message) | |
| # Use Markdown with HTML for clickable links that look like buttons | |
| gr.Markdown( | |
| """ | |
| <a href="https://poe.com/Help_to_Read_a_Book" target="_blank" style="text-decoration: none;"> | |
| <button style="background-color: #4CAF50; /* Green */ | |
| border: none; | |
| color: white; | |
| padding: 15px 32px; | |
| text-align: center; | |
| text-decoration: none; | |
| display: inline-block; | |
| font-size: 16px; | |
| margin: 4px 2px; | |
| cursor: pointer; | |
| border-radius: 8px;"> | |
| Help to Read a Book (Poe.com) | |
| </button> | |
| </a> | |
| """ | |
| ) | |
| gr.Markdown( | |
| """ | |
| <a href="https://poe.com/Chat-ePub" target="_blank" style="text-decoration: none;"> | |
| <button style="background-color: #008CBA; /* Blue */ | |
| border: none; | |
| color: white; | |
| padding: 15px 32px; | |
| text-align: center; | |
| text-decoration: none; | |
| display: inline-block; | |
| font-size: 16px; | |
| margin: 4px 2px; | |
| cursor: pointer; | |
| border-radius: 8px;"> | |
| Chat-ePub (Poe.com) | |
| </button> | |
| </a> | |
| """ | |
| ) | |
| gr.Markdown( | |
| """ | |
| Thank you for your understanding and continued support! | |
| """ | |
| ) | |
| # Launch the Gradio interface | |
| demo.launch() |