add buy me a coffe
Browse files
app.py
CHANGED
|
@@ -38,16 +38,11 @@ YOUTUBE = "youtube"
|
|
| 38 |
TWITCH = "twitch"
|
| 39 |
ERROR = "error"
|
| 40 |
|
| 41 |
-
subtify_logo = Image.open("assets/subtify_logo-scaled.webp")
|
| 42 |
-
subtify_logo_width, subtify_logo_height = subtify_logo.size
|
| 43 |
-
factor = 4
|
| 44 |
-
new_width = subtify_logo_width // factor
|
| 45 |
-
new_height = subtify_logo_height // factor
|
| 46 |
-
# except Exception as e:
|
| 47 |
-
# print(f"No se pudo cargar la imagen: {e}")
|
| 48 |
-
# # Valores predeterminados en caso de error
|
| 49 |
-
# new_width = 200
|
| 50 |
-
# new_height = 100
|
| 51 |
|
| 52 |
BACKGROUND_COLOR = "#0b0f19"
|
| 53 |
BUTTON_COLOR = "#47515f"
|
|
@@ -177,19 +172,19 @@ html_social_media = f'''
|
|
| 177 |
</div>
|
| 178 |
'''
|
| 179 |
|
| 180 |
-
html_subtify_logo = f"""
|
| 181 |
-
<div style="display: flex; justify-content: center; align-items: center;">
|
| 182 |
-
|
| 183 |
-
</div>
|
| 184 |
-
"""
|
| 185 |
-
|
| 186 |
-
# html_buy_me_a_coffe = '''
|
| 187 |
-
# <div style="float: right;">
|
| 188 |
-
# <a href="https://www.buymeacoffee.com/maximofn" target="_blank">
|
| 189 |
-
# <img src="https://img.shields.io/badge/Buy_Me_A_Coffee-support_my_work-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=white&labelColor=101010" alt="buy me a coffe">
|
| 190 |
-
# </a>
|
| 191 |
# </div>
|
| 192 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
# language_dict = union_language_dict()
|
| 195 |
|
|
@@ -699,7 +694,7 @@ def subtify():
|
|
| 699 |
# Layout
|
| 700 |
gr.HTML(html_social_media)
|
| 701 |
gr.HTML("<h1 style='text-align: center;'>Subtify</h1>")
|
| 702 |
-
gr.HTML(html_subtify_logo)
|
| 703 |
# with gr.Row(variant="panel"):
|
| 704 |
# url_textbox = gr.Textbox(placeholder="Add video URL here and wait a moment", label="Video URL", elem_id="video_url", scale=1, interactive=True)
|
| 705 |
# # paste_button = gr.Button(size="sm", icon="icons/paste.svg", value="paste", min_width="10px", scale=0)
|
|
@@ -802,7 +797,7 @@ def subtify():
|
|
| 802 |
# outputs=[video_donwloaded_progress_info, video_sliced_progress_info, video_transcribed_progress_info, transcriptions_concatenated_progress_info, video_translated_progress_info, video_subtitled_progress_info]
|
| 803 |
# )
|
| 804 |
|
| 805 |
-
|
| 806 |
|
| 807 |
demo.launch()
|
| 808 |
|
|
|
|
| 38 |
TWITCH = "twitch"
|
| 39 |
ERROR = "error"
|
| 40 |
|
| 41 |
+
# subtify_logo = Image.open("assets/subtify_logo-scaled.webp")
|
| 42 |
+
# subtify_logo_width, subtify_logo_height = subtify_logo.size
|
| 43 |
+
# factor = 4
|
| 44 |
+
# new_width = subtify_logo_width // factor
|
| 45 |
+
# new_height = subtify_logo_height // factor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
BACKGROUND_COLOR = "#0b0f19"
|
| 48 |
BUTTON_COLOR = "#47515f"
|
|
|
|
| 172 |
</div>
|
| 173 |
'''
|
| 174 |
|
| 175 |
+
# html_subtify_logo = f"""
|
| 176 |
+
# <div style="display: flex; justify-content: center; align-items: center;">
|
| 177 |
+
# <img src='assets/subtify_logo-scaled.webp' width={new_width}px height={new_height}px >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
# </div>
|
| 179 |
+
# """
|
| 180 |
+
|
| 181 |
+
html_buy_me_a_coffe = '''
|
| 182 |
+
<div style="float: right;">
|
| 183 |
+
<a href="https://www.buymeacoffee.com/maximofn" target="_blank">
|
| 184 |
+
<img src="https://img.shields.io/badge/Buy_Me_A_Coffee-support_my_work-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=white&labelColor=101010" alt="buy me a coffe">
|
| 185 |
+
</a>
|
| 186 |
+
</div>
|
| 187 |
+
'''
|
| 188 |
|
| 189 |
# language_dict = union_language_dict()
|
| 190 |
|
|
|
|
| 694 |
# Layout
|
| 695 |
gr.HTML(html_social_media)
|
| 696 |
gr.HTML("<h1 style='text-align: center;'>Subtify</h1>")
|
| 697 |
+
# gr.HTML(html_subtify_logo)
|
| 698 |
# with gr.Row(variant="panel"):
|
| 699 |
# url_textbox = gr.Textbox(placeholder="Add video URL here and wait a moment", label="Video URL", elem_id="video_url", scale=1, interactive=True)
|
| 700 |
# # paste_button = gr.Button(size="sm", icon="icons/paste.svg", value="paste", min_width="10px", scale=0)
|
|
|
|
| 797 |
# outputs=[video_donwloaded_progress_info, video_sliced_progress_info, video_transcribed_progress_info, transcriptions_concatenated_progress_info, video_translated_progress_info, video_subtitled_progress_info]
|
| 798 |
# )
|
| 799 |
|
| 800 |
+
gr.HTML(html_buy_me_a_coffe)
|
| 801 |
|
| 802 |
demo.launch()
|
| 803 |
|