ovi054 commited on
Commit
be74e1d
·
verified ·
1 Parent(s): e7b8de1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -58,11 +58,27 @@ def generate_caption(image):
58
  # return image_path
59
  # except Exception as e:
60
  # raise Exception(f"Error generating image: {str(e)}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  io = gr.Interface(generate_caption,
63
  inputs=[gr.Image(label="Input Image")],
64
  outputs = [gr.Textbox(label="Output Prompt", lines=2, show_copy_button = True),
65
  # gr.Image(label="Output Image")
66
- ]
 
67
  )
68
  io.launch(debug=True)
 
58
  # return image_path
59
  # except Exception as e:
60
  # raise Exception(f"Error generating image: {str(e)}")
61
+
62
+
63
+ article_text = """
64
+ <div style="text-align: center;">
65
+ <p>Enjoying the tool? Buy me a coffee and get exclusive prompt guides!</p>
66
+ <p><i>Instantly unlock helpful tips for creating better prompts!</i></p>
67
+ <div style="display: flex; justify-content: center;">
68
+ <a href="https://piczify.lemonsqueezy.com/buy/0f5206fa-68e8-42f6-9ca8-4f80c587c83e">
69
+ <img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png"
70
+ alt="Buy Me a Coffee"
71
+ style="height: 40px; width: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 10px;">
72
+ </a>
73
+ </div>
74
+ </div>
75
+ """
76
 
77
  io = gr.Interface(generate_caption,
78
  inputs=[gr.Image(label="Input Image")],
79
  outputs = [gr.Textbox(label="Output Prompt", lines=2, show_copy_button = True),
80
  # gr.Image(label="Output Image")
81
+ ],
82
+ article =article_text
83
  )
84
  io.launch(debug=True)