Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -260,7 +260,8 @@ def bot_reply(user_msg, history):
|
|
| 260 |
"β’ `styles` β Premium/Energetic/Fun")
|
| 261 |
|
| 262 |
history = history or []
|
| 263 |
-
history.append(
|
|
|
|
| 264 |
return history, ""
|
| 265 |
|
| 266 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -567,17 +568,8 @@ def generate(images, caption, style, language, duration, add_aud, add_cap, progr
|
|
| 567 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 568 |
# UI
|
| 569 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
#sub{text-align:center;color:#aaa;margin-bottom:1.2rem;font-size:1rem}
|
| 573 |
-
.insight{font-family:monospace;font-size:.86rem;line-height:1.75}
|
| 574 |
-
.bot-container{border:1px solid #3a3a5c;border-radius:12px;padding:0;overflow:hidden}
|
| 575 |
-
.save-row{gap:8px}
|
| 576 |
-
.feature-badge{display:inline-block;background:linear-gradient(135deg,#7c3aed,#db2777);color:white;padding:2px 10px;border-radius:99px;font-size:.75rem;margin:2px}
|
| 577 |
-
.tab-label{font-weight:700}
|
| 578 |
-
"""
|
| 579 |
-
|
| 580 |
-
with gr.Blocks(css=css) as demo:
|
| 581 |
gr.Markdown("# π¬ AI Reel Generator", elem_id="title")
|
| 582 |
gr.Markdown(
|
| 583 |
"Upload 1-5 images β AI auto-detects category β cinematic reel + smart posting strategy\n\n"
|
|
@@ -682,7 +674,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 682 |
bot_chatbox = gr.Chatbot(
|
| 683 |
label="π¬ Chat with ReelBot",
|
| 684 |
height=420,
|
| 685 |
-
|
|
|
|
| 686 |
)
|
| 687 |
|
| 688 |
with gr.Row():
|
|
@@ -811,4 +804,4 @@ with gr.Blocks(css=css) as demo:
|
|
| 811 |
)
|
| 812 |
|
| 813 |
if __name__ == "__main__":
|
| 814 |
-
demo.launch(
|
|
|
|
| 260 |
"β’ `styles` β Premium/Energetic/Fun")
|
| 261 |
|
| 262 |
history = history or []
|
| 263 |
+
history.append({"role": "user", "content": user_msg})
|
| 264 |
+
history.append({"role": "assistant", "content": reply})
|
| 265 |
return history, ""
|
| 266 |
|
| 267 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 568 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 569 |
# UI
|
| 570 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 571 |
+
|
| 572 |
+
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 573 |
gr.Markdown("# π¬ AI Reel Generator", elem_id="title")
|
| 574 |
gr.Markdown(
|
| 575 |
"Upload 1-5 images β AI auto-detects category β cinematic reel + smart posting strategy\n\n"
|
|
|
|
| 674 |
bot_chatbox = gr.Chatbot(
|
| 675 |
label="π¬ Chat with ReelBot",
|
| 676 |
height=420,
|
| 677 |
+
type="messages",
|
| 678 |
+
value=[{"role": "assistant", "content": WELCOME_MSG}],
|
| 679 |
)
|
| 680 |
|
| 681 |
with gr.Row():
|
|
|
|
| 804 |
)
|
| 805 |
|
| 806 |
if __name__ == "__main__":
|
| 807 |
+
demo.launch()
|