Dede16 commited on
Commit
4be30a2
·
1 Parent(s): 97c36a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -596,9 +596,9 @@ def view():
596
  title = '<h1>'+judul+'</h1>'
597
  with open('kontent.txt', 'r') as file:
598
  kontent = file.read()
599
- image = Image.open('output_image.png')
600
 
601
- return title,image,kontent
602
 
603
 
604
  with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_generator:
@@ -637,7 +637,7 @@ with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_g
637
  content = gr.HTML("")
638
  view_output.click(fn=view_outputs, outputs = [title,img,content])
639
  view_change = gr.Button("View Change")
640
- view_change.click(fn=view, outputs=[title,img,content])
641
  with gr.Column():
642
  endpoint= gr.Textbox(placeholder="Masukkan Endpoint Wordpress", label="Endpoint Wordpress")
643
  endpoint_media= gr.Textbox(placeholder="Masukkan Endpoint Media Wordpress", label="Endpoint Media")
 
596
  title = '<h1>'+judul+'</h1>'
597
  with open('kontent.txt', 'r') as file:
598
  kontent = file.read()
599
+ # image = Image.open('output_image.png')
600
 
601
+ return title,kontent
602
 
603
 
604
  with gr.Blocks(theme = "soft", title="Wordpress Article Generator") as article_generator:
 
637
  content = gr.HTML("")
638
  view_output.click(fn=view_outputs, outputs = [title,img,content])
639
  view_change = gr.Button("View Change")
640
+ view_change.click(fn=view, outputs=[title,content])
641
  with gr.Column():
642
  endpoint= gr.Textbox(placeholder="Masukkan Endpoint Wordpress", label="Endpoint Wordpress")
643
  endpoint_media= gr.Textbox(placeholder="Masukkan Endpoint Media Wordpress", label="Endpoint Media")