Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -608,6 +608,7 @@ with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_g
|
|
| 608 |
button_post = gr.Button("Post Article")
|
| 609 |
status = gr.Textbox("", label="Response")
|
| 610 |
button_post.click(fn=post, inputs=[endpoint,endpoint_media,username,password,tags,categories,metode], outputs=status)
|
| 611 |
-
|
|
|
|
| 612 |
if __name__ == "__main__":
|
| 613 |
article_generator.launch()
|
|
|
|
| 608 |
button_post = gr.Button("Post Article")
|
| 609 |
status = gr.Textbox("", label="Response")
|
| 610 |
button_post.click(fn=post, inputs=[endpoint,endpoint_media,username,password,tags,categories,metode], outputs=status)
|
| 611 |
+
|
| 612 |
+
article_generator.head("<script>function toggleVisibility() { var x = document.getElementById('input_textbox'); if (x.type === 'password') { x.type = 'text'; } else { x.type = 'password'; } }</script>")
|
| 613 |
if __name__ == "__main__":
|
| 614 |
article_generator.launch()
|