Dede16 commited on
Commit
bc413eb
·
1 Parent(s): 71aa2f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -650,13 +650,11 @@ def view_output():
650
  with open('kontent.txt', 'r') as file:
651
  kontent = file.read()
652
  time.sleep(5)
653
- image = Image.open('output_image.png')
654
- return title,image,kontent
655
  except:
656
  title = 'Gagal Generate Judul'
657
  kontent = 'Gagal Generate Konten'
658
- image = Image.open('error.png')
659
- return title,image,kontent
660
 
661
  def save(title,content):
662
  with open("judul.txt", "w") as file:
 
650
  with open('kontent.txt', 'r') as file:
651
  kontent = file.read()
652
  time.sleep(5)
653
+ return title,kontent
 
654
  except:
655
  title = 'Gagal Generate Judul'
656
  kontent = 'Gagal Generate Konten'
657
+ return title,kontent
 
658
 
659
  def save(title,content):
660
  with open("judul.txt", "w") as file: