darkc0de commited on
Commit
7561984
·
verified ·
1 Parent(s): 5a93173

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -102,6 +102,15 @@ kofi_script = """
102
  </script>
103
  """
104
 
 
 
 
 
 
 
 
 
 
105
  # Create a Gradio Blocks layout for more control over the interface
106
  # theme=gr.themes.Soft() applies a soft visual theme
107
  # Add the kofi_script to the head of the HTML page
@@ -131,6 +140,9 @@ with gr.Blocks(theme=gr.themes.Soft(), head=kofi_script) as demo:
131
  # clear_btn="Clear Chat", # Customizes the clear button
132
  )
133
 
 
 
 
134
  # --- Application Entry Point ---
135
  if __name__ == "__main__":
136
  # Launch the Gradio web server
 
102
  </script>
103
  """
104
 
105
+ # Ko-fi button HTML
106
+ kofi_button_html = """
107
+ <div style="text-align: center; padding: 20px;">
108
+ <a href='https://ko-fi.com/Z8Z51E5TIG' target='_blank'>
109
+ <img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi5.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' />
110
+ </a>
111
+ </div>
112
+ """
113
+
114
  # Create a Gradio Blocks layout for more control over the interface
115
  # theme=gr.themes.Soft() applies a soft visual theme
116
  # Add the kofi_script to the head of the HTML page
 
140
  # clear_btn="Clear Chat", # Customizes the clear button
141
  )
142
 
143
+ # Add the Ko-fi button at the bottom
144
+ gr.HTML(kofi_button_html) #
145
+
146
  # --- Application Entry Point ---
147
  if __name__ == "__main__":
148
  # Launch the Gradio web server