Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,11 @@ def generate_storyboard(scenario):
|
|
| 45 |
return "Please provide a scenario to generate the storyboard."
|
| 46 |
|
| 47 |
messages = [
|
| 48 |
-
{"role": "system", "content": "You are an AI storyteller. Generate a storyboard in a structured table with six scenes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
{"role": "user", "content": f"Generate a 6-scene storyboard for: {scenario}"}
|
| 50 |
]
|
| 51 |
|
|
@@ -67,7 +71,7 @@ h1 { text-align: center; font-size: 24px; margin-bottom: 10px; }
|
|
| 67 |
<h1>📖 Storyboard Assistant</h1>
|
| 68 |
"""
|
| 69 |
|
| 70 |
-
with gr.Blocks(theme=gr.themes.Glass(primary_hue="violet", secondary_hue="
|
| 71 |
with gr.Tabs():
|
| 72 |
with gr.TabItem("💬Chat"):
|
| 73 |
gr.HTML(TITLE)
|
|
|
|
| 45 |
return "Please provide a scenario to generate the storyboard."
|
| 46 |
|
| 47 |
messages = [
|
| 48 |
+
{"role": "system", "content": """You are an AI storyteller. Generate a storyboard in a structured table with six scenes. For each scene you provide
|
| 49 |
+
1) A Scenario text describing what problem a pesona is trying to resolve and by using what product or feature.
|
| 50 |
+
2) Storyline text for each scene, descriptive visual information and the purpose of the scene.
|
| 51 |
+
You must provide the output in structured format like table.
|
| 52 |
+
"""},
|
| 53 |
{"role": "user", "content": f"Generate a 6-scene storyboard for: {scenario}"}
|
| 54 |
]
|
| 55 |
|
|
|
|
| 71 |
<h1>📖 Storyboard Assistant</h1>
|
| 72 |
"""
|
| 73 |
|
| 74 |
+
with gr.Blocks(theme=gr.themes.Glass(primary_hue="violet", secondary_hue="violet", neutral_hue="stone")) as demo:
|
| 75 |
with gr.Tabs():
|
| 76 |
with gr.TabItem("💬Chat"):
|
| 77 |
gr.HTML(TITLE)
|