Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -623,17 +623,17 @@ with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_g
|
|
623 |
replicate_token = gr.Textbox(placeholder="Masukkan Token Replicate", type="password",label="Replicate Key")
|
624 |
button_scrap = gr.Button("Scrap Article")
|
625 |
output = gr.HTML("")
|
626 |
-
img = gr.Image(label="
|
627 |
button_scrap.click(fn=scrap, inputs=[link,backlink,keyword,versi,api_key,link_azure,replicate_token], outputs= [output,img])
|
628 |
-
view_outputs = gr.Button("View
|
629 |
-
with gr.Tab("Raw
|
630 |
-
title = gr.Textbox("", label="
|
631 |
-
content = gr.Textbox("", label="
|
632 |
view_outputs.click(fn=view_output, outputs=[title,content])
|
633 |
save_button= gr.Button("Save Change")
|
634 |
status = gr.HTML("")
|
635 |
save_button.click(fn=save, inputs =[title,content], outputs = status)
|
636 |
-
with gr.Tab("Formatted
|
637 |
view_change = gr.Button("View Change")
|
638 |
title = gr.HTML("")
|
639 |
content = gr.HTML("")
|
|
|
623 |
replicate_token = gr.Textbox(placeholder="Masukkan Token Replicate", type="password",label="Replicate Key")
|
624 |
button_scrap = gr.Button("Scrap Article")
|
625 |
output = gr.HTML("")
|
626 |
+
img = gr.Image(label="Content Media")
|
627 |
button_scrap.click(fn=scrap, inputs=[link,backlink,keyword,versi,api_key,link_azure,replicate_token], outputs= [output,img])
|
628 |
+
view_outputs = gr.Button("View Article")
|
629 |
+
with gr.Tab("Raw Article"):
|
630 |
+
title = gr.Textbox("", label="Title", interactive=True)
|
631 |
+
content = gr.Textbox("", label="Conten", interactive=True)
|
632 |
view_outputs.click(fn=view_output, outputs=[title,content])
|
633 |
save_button= gr.Button("Save Change")
|
634 |
status = gr.HTML("")
|
635 |
save_button.click(fn=save, inputs =[title,content], outputs = status)
|
636 |
+
with gr.Tab("Formatted Article"):
|
637 |
view_change = gr.Button("View Change")
|
638 |
title = gr.HTML("")
|
639 |
content = gr.HTML("")
|