Update app.py
Browse files
app.py
CHANGED
|
@@ -256,12 +256,11 @@ def generate_instagram_captions(description):
|
|
| 256 |
if final_caption not in final_captions:
|
| 257 |
final_captions.append(final_caption)
|
| 258 |
|
| 259 |
-
# Format as numbered list
|
| 260 |
-
result = "
|
| 261 |
-
emojis = ["π―", "β‘", "π", "π₯", "π«"]
|
| 262 |
|
| 263 |
for i, caption in enumerate(final_captions[:5]):
|
| 264 |
-
result += f"{
|
| 265 |
|
| 266 |
return result.strip()
|
| 267 |
|
|
@@ -464,7 +463,7 @@ with gr.Blocks(
|
|
| 464 |
title="InstaCap - AI Caption Generator"
|
| 465 |
) as demo:
|
| 466 |
|
| 467 |
-
gr.HTML('<h1 class="main-header">πΈ InstaCap β AI Caption Generator</h1>')
|
| 468 |
gr.HTML('<p class="subtitle">Create short, catchy Instagram captions in seconds! Perfect for your social media posts β¨</p>')
|
| 469 |
|
| 470 |
with gr.Row():
|
|
|
|
| 256 |
if final_caption not in final_captions:
|
| 257 |
final_captions.append(final_caption)
|
| 258 |
|
| 259 |
+
# Format as numbered list without emojis
|
| 260 |
+
result = ""
|
|
|
|
| 261 |
|
| 262 |
for i, caption in enumerate(final_captions[:5]):
|
| 263 |
+
result += f"{caption}\n"
|
| 264 |
|
| 265 |
return result.strip()
|
| 266 |
|
|
|
|
| 463 |
title="InstaCap - AI Caption Generator"
|
| 464 |
) as demo:
|
| 465 |
|
| 466 |
+
gr.HTML('<h1 class="main-header"><strong>πΈ InstaCap β AI Caption Generator</strong></h1>')
|
| 467 |
gr.HTML('<p class="subtitle">Create short, catchy Instagram captions in seconds! Perfect for your social media posts β¨</p>')
|
| 468 |
|
| 469 |
with gr.Row():
|