Spaces:
Sleeping
Sleeping
File size: 2,421 Bytes
212347a f3d8d40 dca593a f3d8d40 dca593a f3d8d40 dca593a f3d8d40 c447b37 f3d8d40 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
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() |