Dede16 commited on
Commit
51cd9ff
·
1 Parent(s): d19e5af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -593,21 +593,10 @@ with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_g
593
  content = gr.HTML("")
594
  view_output.click(fn=view_outputs, outputs = [title,img,content])
595
  with gr.Tab("Raw Output"):
596
- title = gr.Textbox("", label="Judul")
597
  img = gr.Image(height=300, width=500)
598
- content = gr.Textbox("", label="Konten")
599
  view_output.click(fn=view_outputs, outputs = [title,img,content])
600
- show_password = gr.Checkbox(label="Show Password")
601
-
602
- button_scrap = gr.Button("Scrap Article")
603
- status = gr.Textbox("", label="Generate Status")
604
-
605
- def toggle_show_password():
606
- # Callback untuk menampilkan atau menyembunyikan teks password berdasarkan nilai checkbox
607
- password.show(show_password.value)
608
-
609
- # Mengaitkan fungsi toggle_show_password dengan perubahan nilai pada checkbox
610
- show_password.click(toggle_show_password)
611
  with gr.Column():
612
  endpoint= gr.Textbox(placeholder="Masukkan Endpoint Wordpress", label="Endpoint Wordpress")
613
  endpoint_media= gr.Textbox(placeholder="Masukkan Endpoint Media Wordpress", label="Endpoint Media")
 
593
  content = gr.HTML("")
594
  view_output.click(fn=view_outputs, outputs = [title,img,content])
595
  with gr.Tab("Raw Output"):
596
+ title = gr.Textbox("", label="Judul", interactive=True)
597
  img = gr.Image(height=300, width=500)
598
+ content = gr.Textbox("", label="Konten", interactive=True)
599
  view_output.click(fn=view_outputs, outputs = [title,img,content])
 
 
 
 
 
 
 
 
 
 
 
600
  with gr.Column():
601
  endpoint= gr.Textbox(placeholder="Masukkan Endpoint Wordpress", label="Endpoint Wordpress")
602
  endpoint_media= gr.Textbox(placeholder="Masukkan Endpoint Media Wordpress", label="Endpoint Media")