Moibe commited on
Commit
1093639
·
1 Parent(s): 1dd54ec

Print html

Browse files
app.py CHANGED
@@ -71,8 +71,9 @@ def perform(input1, input2):
71
  print("Se obtuvo un resultado, debitaremos.")
72
  #Y finalmente debita los tokens.
73
  gr.State.tokens = sulkuPypi.debitTokens(gr.State.capsule, "picswap")
74
- print(f"Y ahora tienes: {gr.State.tokens} tokens.")
75
  html_credits = tools.actualizar_creditos(gr.State.tokens)
 
76
  info_window = "Image ready!"
77
 
78
  else:
@@ -143,7 +144,7 @@ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as mai
143
  title="",
144
  inputs=[source_image, destination_image],
145
  outputs=[result_image, lbl_console, html_credits, btn_buy],
146
- allow_flagging='auto'
147
  )
148
 
149
  main.launch(auth=authenticate)
 
71
  print("Se obtuvo un resultado, debitaremos.")
72
  #Y finalmente debita los tokens.
73
  gr.State.tokens = sulkuPypi.debitTokens(gr.State.capsule, "picswap")
74
+ print(f"182 Y ahora tienes: {gr.State.tokens} tokens.")
75
  html_credits = tools.actualizar_creditos(gr.State.tokens)
76
+ print(f"html credits quedó como : {html_credits} y es del tipo: {type(html_credits)}")
77
  info_window = "Image ready!"
78
 
79
  else:
 
144
  title="",
145
  inputs=[source_image, destination_image],
146
  outputs=[result_image, lbl_console, html_credits, btn_buy],
147
+ allow_flagging='never'
148
  )
149
 
150
  main.launch(auth=authenticate)
flagged/Destination/02971dedc30619f9bce8/10059759-cleavage-on-cute-young-seductive-woman.jpg ADDED
flagged/Destination/2bcee4e6f58ed620398e/10059759-cleavage-on-cute-young-seductive-woman.jpg ADDED
flagged/Destination/9f7ebd77fd01f846ff45/10059759-cleavage-on-cute-young-seductive-woman.jpg ADDED
flagged/Source/6d9d8ffd450ad7d6ffaa/LazyTown.jfif ADDED
Binary file (8.3 kB). View file
 
flagged/Source/8e19de58400afd9f488e/LazyTown.jfif ADDED
Binary file (8.3 kB). View file
 
flagged/Source/b87c7442e6f46c3d52d6/LazyTown.jfif ADDED
Binary file (8.3 kB). View file
 
flagged/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Source,Destination,Blend Result,AI Terminal Messages,output 2,output 3,flag,username,timestamp
2
+ flagged\Source\8e19de58400afd9f488e\LazyTown.jfif,flagged\Destination\2bcee4e6f58ed620398e\10059759-cleavage-on-cute-young-seductive-woman.jpg,flagged\Blend Result\017db7d63670a8cdfc42\result.png,"{""label"": ""Image ready!"", ""confidences"": null}",,Buy More,,moibe,2024-08-30 22:48:26.845628