Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -306,34 +306,6 @@ def create_advanced_options():
|
|
306 |
|
307 |
with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
308 |
|
309 |
-
|
310 |
-
with gr.Accordion(" ๐ Tips for Best Results", open=False, elem_id="instructions-accordion"):
|
311 |
-
gr.Markdown(
|
312 |
-
"""
|
313 |
-
๐ Prompt Engineering
|
314 |
-
|
315 |
-
When writing prompts, focus on detailed, chronological descriptions of actions and scenes. Include specific movements, appearances, camera angles, and environmental details - all in a single flowing paragraph. Start directly with the action, and keep descriptions literal and precise. Think like a cinematographer describing a shot list. Keep within 200 words.
|
316 |
-
For best results, build your prompts using this structure:
|
317 |
-
|
318 |
-
- Start with main action in a single sentence
|
319 |
-
- Add specific details about movements and gestures
|
320 |
-
- Describe character/object appearances precisely
|
321 |
-
- Include background and environment details
|
322 |
-
- Specify camera angles and movements
|
323 |
-
- Describe lighting and colors
|
324 |
-
- Note any changes or sudden events
|
325 |
-
|
326 |
-
See examples for more inspiration.
|
327 |
-
|
328 |
-
๐ฎ Parameter Guide
|
329 |
-
|
330 |
-
- Resolution Preset: Higher resolutions for detailed scenes, lower for faster generation and simpler scenes
|
331 |
-
- Seed: Save seed values to recreate specific styles or compositions you like
|
332 |
-
- Guidance Scale: 3-3.5 are the recommended values
|
333 |
-
- Inference Steps: More steps (40+) for quality, fewer steps (20-30) for speed
|
334 |
-
"""
|
335 |
-
)
|
336 |
-
|
337 |
with gr.Column():
|
338 |
txt2vid_prompt = gr.Textbox(
|
339 |
label="Step 1: Enter Your Prompt (ํ๊ธ ๋๋ ์์ด)",
|
@@ -341,11 +313,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
341 |
value="๊ธด ๊ฐ์ ๋จธ๋ฆฌ์ ๋ฐ์ ํผ๋ถ๋ฅผ ๊ฐ์ง ์ฌ์ฑ์ด ๊ธด ๊ธ๋ฐ ๋จธ๋ฆฌ๋ฅผ ๊ฐ์ง ๋ค๋ฅธ ์ฌ์ฑ์ ํฅํด ๋ฏธ์ ์ง์ต๋๋ค. ๊ฐ์ ๋จธ๋ฆฌ ์ฌ์ฑ์ ๊ฒ์ ์ฌํท์ ์
๊ณ ์์ผ๋ฉฐ ์ค๋ฅธ์ชฝ ๋บจ์ ์๊ณ ๊ฑฐ์ ๋์ ๋์ง ์๋ ์ ์ด ์์ต๋๋ค. ์นด๋ฉ๋ผ ์ต๊ธ์ ๊ฐ์ ๋จธ๋ฆฌ ์ฌ์ฑ์ ์ผ๊ตด์ ์ด์ ์ ๋ง์ถ ํด๋ก์ฆ์
์
๋๋ค. ์กฐ๋ช
์ ๋ฐ๋ปํ๊ณ ์์ฐ์ค๋ฌ์ฐ๋ฉฐ, ์๋ง๋ ์ง๋ ํด์์ ๋์ค๋ ๊ฒ ๊ฐ์ ์ฅ๋ฉด์ ๋ถ๋๋ฌ์ด ๋น์ ๋น์ถฅ๋๋ค.",
|
342 |
lines=5,
|
343 |
)
|
344 |
-
|
345 |
-
label="I agree to share my usage data anonymously to help improve the model features.",
|
346 |
-
value=True,
|
347 |
-
interactive=True,
|
348 |
-
)
|
349 |
|
350 |
txt2vid_enhance_toggle = Toggle(
|
351 |
label="Enhance Prompt",
|
|
|
306 |
|
307 |
with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
with gr.Column():
|
310 |
txt2vid_prompt = gr.Textbox(
|
311 |
label="Step 1: Enter Your Prompt (ํ๊ธ ๋๋ ์์ด)",
|
|
|
313 |
value="๊ธด ๊ฐ์ ๋จธ๋ฆฌ์ ๋ฐ์ ํผ๋ถ๋ฅผ ๊ฐ์ง ์ฌ์ฑ์ด ๊ธด ๊ธ๋ฐ ๋จธ๋ฆฌ๋ฅผ ๊ฐ์ง ๋ค๋ฅธ ์ฌ์ฑ์ ํฅํด ๋ฏธ์ ์ง์ต๋๋ค. ๊ฐ์ ๋จธ๋ฆฌ ์ฌ์ฑ์ ๊ฒ์ ์ฌํท์ ์
๊ณ ์์ผ๋ฉฐ ์ค๋ฅธ์ชฝ ๋บจ์ ์๊ณ ๊ฑฐ์ ๋์ ๋์ง ์๋ ์ ์ด ์์ต๋๋ค. ์นด๋ฉ๋ผ ์ต๊ธ์ ๊ฐ์ ๋จธ๋ฆฌ ์ฌ์ฑ์ ์ผ๊ตด์ ์ด์ ์ ๋ง์ถ ํด๋ก์ฆ์
์
๋๋ค. ์กฐ๋ช
์ ๋ฐ๋ปํ๊ณ ์์ฐ์ค๋ฌ์ฐ๋ฉฐ, ์๋ง๋ ์ง๋ ํด์์ ๋์ค๋ ๊ฒ ๊ฐ์ ์ฅ๋ฉด์ ๋ถ๋๋ฌ์ด ๋น์ ๋น์ถฅ๋๋ค.",
|
314 |
lines=5,
|
315 |
)
|
316 |
+
|
|
|
|
|
|
|
|
|
317 |
|
318 |
txt2vid_enhance_toggle = Toggle(
|
319 |
label="Enhance Prompt",
|