File size: 744 Bytes
f9e7cf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from shiny import ui

ui = ui.nav_panel(
    "Threads Poster",

    # Topic input
    ui.input_text("threads_topic", "Enter Topic", placeholder="e.g. New Anime Drop This Friday"),

    # Optional blog link
    ui.input_text("threads_url", "Optional Blog Link", placeholder="https://yourshop.com/blogs/xyz"),

    # Generate button
    ui.div(
        ui.input_action_button("gen_btn_threads", "Generate Threads Post", class_="btn-primary"),
        class_="mt-3 mb-2"
    ),

    # Post output and button
    ui.output_ui("threads_post_draft"),
    ui.div(
        ui.input_action_button("post_btn_threads", "Post to Threads", class_="btn-success"),
        class_="my-3"
    ),

    # Status output
    ui.output_text("threads_post_status")
)