Update app.py
Browse files
app.py
CHANGED
@@ -275,12 +275,19 @@ def stream_chat(input_image: Image.Image, caption_type: str, caption_tone: str,
|
|
275 |
return caption
|
276 |
|
277 |
css = """
|
278 |
-
h1, h2, h3, h4, h5, h6, p, li, ul, ol, a {
|
279 |
text-align: left;
|
280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
.centered-image {
|
282 |
display: block;
|
283 |
-
margin-left:
|
284 |
margin-right: auto;
|
285 |
max-width: 100%;
|
286 |
height: auto;
|
@@ -418,7 +425,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
418 |
with gr.Tab("Welcome"):
|
419 |
gr.Markdown(
|
420 |
"""
|
421 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/LVZnwLV43UUvKu3HORqSs.webp" alt="UDG"
|
422 |
|
423 |
# 🎨 Underground Digital's Caption Captain: AI-Powered Art Inspiration
|
424 |
|
@@ -440,7 +447,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
440 |
with gr.Row():
|
441 |
password = gr.Textbox(label="Password", type="password", placeholder="Enter your password", value="ugd!", visible=False)
|
442 |
with gr.Row():
|
443 |
-
login_button = gr.Button("Login", size="sm")
|
444 |
login_message = gr.Markdown(visible=False)
|
445 |
|
446 |
with gr.Tab("Caption Captain") as app_container:
|
@@ -448,7 +455,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
448 |
gr.Markdown("""
|
449 |
# How to Use Caption Captain
|
450 |
|
451 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/Ce_Z478iOXljvpZ_Fr_Y7.png" alt="Captain"
|
452 |
|
453 |
Hello, artist! Let's make some fun captions for your pictures. Here's how:
|
454 |
|
|
|
275 |
return caption
|
276 |
|
277 |
css = """
|
278 |
+
h1, h2, h3, h4, h5, h6, p, li, ul, ol, a, img {
|
279 |
text-align: left;
|
280 |
}
|
281 |
+
img {
|
282 |
+
display: inline-block;
|
283 |
+
vertical-align: middle;
|
284 |
+
margin-right: 10px;
|
285 |
+
max-width: 100%;
|
286 |
+
height: auto;
|
287 |
+
}
|
288 |
.centered-image {
|
289 |
display: block;
|
290 |
+
margin-left: 0;
|
291 |
margin-right: auto;
|
292 |
max-width: 100%;
|
293 |
height: auto;
|
|
|
425 |
with gr.Tab("Welcome"):
|
426 |
gr.Markdown(
|
427 |
"""
|
428 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/LVZnwLV43UUvKu3HORqSs.webp" alt="UDG" width="250" style="max-width: 100%; height: auto;">
|
429 |
|
430 |
# 🎨 Underground Digital's Caption Captain: AI-Powered Art Inspiration
|
431 |
|
|
|
447 |
with gr.Row():
|
448 |
password = gr.Textbox(label="Password", type="password", placeholder="Enter your password", value="ugd!", visible=False)
|
449 |
with gr.Row():
|
450 |
+
login_button = gr.Button("Login", size="sm", visible=False)
|
451 |
login_message = gr.Markdown(visible=False)
|
452 |
|
453 |
with gr.Tab("Caption Captain") as app_container:
|
|
|
455 |
gr.Markdown("""
|
456 |
# How to Use Caption Captain
|
457 |
|
458 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/Ce_Z478iOXljvpZ_Fr_Y7.png" alt="Captain" width="100" style="max-width: 100%; height: auto;">
|
459 |
|
460 |
Hello, artist! Let's make some fun captions for your pictures. Here's how:
|
461 |
|