openfree commited on
Commit
ddb87db
ยท
verified ยท
1 Parent(s): 2c7be3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -22
app.py CHANGED
@@ -397,57 +397,63 @@ class WebNovelSystem:
397
  lang_prompts = {
398
  "Korean": f"""ํ•œ๊ตญ ์›น์†Œ์„ค ์‹œ์žฅ์„ ๊ฒจ๋ƒฅํ•œ {genre} ์žฅ๋ฅด ์›น์†Œ์„ค์„ ๊ธฐํšํ•˜์„ธ์š”.
399
 
400
- **์ฃผ์ œ:** {query}
 
 
401
  **์žฅ๋ฅด:** {genre}
402
  **๋ชฉํ‘œ:** 40ํ™” ์™„๊ฒฐ, ์ด 16,000๋‹จ์–ด
403
 
404
- **์žฅ๋ฅด ํ•„์ˆ˜ ์š”์†Œ:**
 
 
405
  - ํ•ต์‹ฌ ์š”์†Œ: {', '.join(genre_info.get('key_elements', []))}
406
  - ์ธ๊ธฐ ํŠธ๋กœํ”„: {', '.join(genre_info.get('popular_tropes', []))}
407
  - ํ•„์ˆ˜ ํฌํ•จ: {', '.join(genre_info.get('must_have', []))}
408
 
409
- **์ „์ฒด ๊ตฌ์„ฑ:**
410
- 1. **1-5ํ™”**: ํฅ๋ฏธ๋กœ์šด ๋„์ž…๋ถ€, ์ฃผ์ธ๊ณต๊ณผ ์„ธ๊ณ„๊ด€ ์†Œ๊ฐœ, ํ•ต์‹ฌ ๊ฐˆ๋“ฑ ์ œ์‹œ
411
- 2. **6-15ํ™”**: ๊ฐˆ๋“ฑ ์ƒ์Šน, ์ฃผ์š” ์ธ๋ฌผ ๊ด€๊ณ„ ํ˜•์„ฑ, ์ฒซ ๋ฒˆ์งธ ์œ„๊ธฐ
412
- 3. **16-25ํ™”**: ์ค‘๊ฐ„ ํด๋ผ์ด๋งฅ์Šค, ๋ฐ˜์ „, ์ƒˆ๋กœ์šด ์ง„์‹ค ๋ฐœ๊ฒฌ
413
- 4. **26-35ํ™”**: ์ตœ์ข… ๊ฐˆ๋“ฑ์œผ๋กœ ์น˜๋‹ซ๊ธฐ, ๋ชจ๋“  ๊ฐˆ๋“ฑ์˜ ์ˆ˜๋ ด
414
- 5. **36-40ํ™”**: ๋Œ€๊ฒฐ์ „, ํด๋ผ์ด๋งฅ์Šค์™€ ๊ฒฐ๋ง, ๊ฐ๋™์  ๋งˆ๋ฌด๋ฆฌ
415
 
416
  **๊ฐ ํ™” ๊ตฌ์„ฑ ์›์น™:**
417
  - 400-600๋‹จ์–ด ๋ถ„๋Ÿ‰ (์ถฉ์‹คํ•œ ๋‚ด์šฉ)
418
- - 3-4๊ฐœ์˜ ์ฃผ์š” ์žฅ๋ฉด ํฌํ•จ
419
  - ๋งค ํ™” ๋ ๊ฐ•๋ ฅํ•œ ํ›„ํฌ
420
  - ๋น ๋ฅธ ์ „๊ฐœ์™€ ๋ชฐ์ž…๊ฐ
421
- - ๋…์ž๊ฐ€ ๋‹ค์Œ ํ™”๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ฒŒ ๋งŒ๋“ค๊ธฐ
422
 
423
- ๊ตฌ์ฒด์ ์ธ 40ํ™” ํ”Œ๋กฏ๋ผ์ธ์„ ์ œ์‹œํ•˜์„ธ์š”. ๊ฐ ํ™”๋งˆ๋‹ค ํ•ต์‹ฌ ์‚ฌ๊ฑด๊ณผ ์ „๊ฐœ๋ฅผ ๋ช…์‹œํ•˜์„ธ์š”.""",
424
 
425
  "English": f"""Plan a Korean-style web novel for {genre} genre.
426
 
427
- **Theme:** {query}
 
 
428
  **Genre:** {genre}
429
  **Goal:** 40 episodes, total 16,000 words
430
 
431
- **Genre Requirements:**
 
 
432
  - Key elements: {', '.join(genre_info.get('key_elements', []))}
433
  - Popular tropes: {', '.join(genre_info.get('popular_tropes', []))}
434
  - Must include: {', '.join(genre_info.get('must_have', []))}
435
 
436
- **Overall Structure:**
437
- 1. **Episodes 1-5**: Engaging introduction, protagonist and world, core conflict
438
- 2. **Episodes 6-15**: Rising conflict, main relationships, first crisis
439
- 3. **Episodes 16-25**: Mid climax, plot twist, new revelations
440
- 4. **Episodes 26-35**: Building to final conflict, convergence of all conflicts
441
- 5. **Episodes 36-40**: Final battle, climax and resolution, emotional closure
442
 
443
  **Episode Principles:**
444
  - 400-600 words each (substantial content)
445
- - 3-4 major scenes per episode
446
  - Strong hook at episode end
447
  - Fast pacing and immersion
448
- - Make readers crave next episode
449
 
450
- Provide detailed 40-episode plotline with key events for each episode."""
451
  }
452
 
453
  return lang_prompts.get(language, lang_prompts["Korean"])
 
397
  lang_prompts = {
398
  "Korean": f"""ํ•œ๊ตญ ์›น์†Œ์„ค ์‹œ์žฅ์„ ๊ฒจ๋ƒฅํ•œ {genre} ์žฅ๋ฅด ์›น์†Œ์„ค์„ ๊ธฐํšํ•˜์„ธ์š”.
399
 
400
+ **[ํ•ต์‹ฌ ์Šคํ† ๋ฆฌ ์„ค์ • - ๋ฐ˜๋“œ์‹œ ์ด ๋‚ด์šฉ์„ ์ค‘์‹ฌ์œผ๋กœ ์ „๊ฐœํ•˜์„ธ์š”]**
401
+ {query}
402
+
403
  **์žฅ๋ฅด:** {genre}
404
  **๋ชฉํ‘œ:** 40ํ™” ์™„๊ฒฐ, ์ด 16,000๋‹จ์–ด
405
 
406
+ โš ๏ธ **์ค‘์š”**: ์œ„์— ์ œ์‹œ๋œ ์Šคํ† ๋ฆฌ ์„ค์ •์„ ๋ฐ˜๋“œ์‹œ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜์—ฌ ํ”Œ๋กฏ์„ ๊ตฌ์„ฑํ•˜์„ธ์š”. ์ด ์„ค์ •์ด ์ „์ฒด ์ด์•ผ๊ธฐ์˜ ํ•ต์‹ฌ์ด๋ฉฐ, ๋ชจ๋“  ์—ํ”ผ์†Œ๋“œ๋Š” ์ด ์„ค์ •์„ ์ค‘์‹ฌ์œผ๋กœ ์ „๊ฐœ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
407
+
408
+ **์žฅ๋ฅด ํ•„์ˆ˜ ์š”์†Œ (์Šคํ† ๋ฆฌ ์„ค์ •๊ณผ ์กฐํ™”๋กญ๊ฒŒ ํฌํ•จ):**
409
  - ํ•ต์‹ฌ ์š”์†Œ: {', '.join(genre_info.get('key_elements', []))}
410
  - ์ธ๊ธฐ ํŠธ๋กœํ”„: {', '.join(genre_info.get('popular_tropes', []))}
411
  - ํ•„์ˆ˜ ํฌํ•จ: {', '.join(genre_info.get('must_have', []))}
412
 
413
+ **์ „์ฒด ๊ตฌ์„ฑ (์ž…๋ ฅ๋œ ์Šคํ† ๋ฆฌ ์„ค์ •์„ ๊ธฐ๋ฐ˜์œผ๋กœ):**
414
+ 1. **1-5ํ™”**: ์ œ์‹œ๋œ ์„ค์ •์˜ ์ฃผ์ธ๊ณต๊ณผ ์ƒํ™ฉ ์†Œ๊ฐœ, ํ•ต์‹ฌ ๊ฐˆ๋“ฑ ์ œ์‹œ
415
+ 2. **6-15ํ™”**: ์„ค์ •์—์„œ ์ œ์‹œ๋œ ๊ฐˆ๋“ฑ์˜ ์‹ฌํ™”, ๊ด€๊ณ„ ๋ฐœ์ „
416
+ 3. **16-25ํ™”**: ์„ค์ •๊ณผ ๊ด€๋ จ๋œ ์ค‘์š”ํ•œ ๋ฐ˜์ „, ์ƒˆ๋กœ์šด ์ง„์‹ค ๋ฐœ๊ฒฌ
417
+ 4. **26-35ํ™”**: ์„ค์ •์˜ ํ•ต์‹ฌ ๊ฐˆ๋“ฑ์ด ์ตœ๊ณ ์กฐ์— ์ด๋ฅด๊ธฐ
418
+ 5. **36-40ํ™”**: ์„ค์ •์—์„œ ์‹œ์ž‘๋œ ๋ชจ๋“  ์ด์•ผ๊ธฐ์˜ ๋Œ€๋‹จ์›
419
 
420
  **๊ฐ ํ™” ๊ตฌ์„ฑ ์›์น™:**
421
  - 400-600๋‹จ์–ด ๋ถ„๋Ÿ‰ (์ถฉ์‹คํ•œ ๋‚ด์šฉ)
422
+ - ์ž…๋ ฅ๋œ ์Šคํ† ๋ฆฌ ์„ค์ •์— ์ถฉ์‹คํ•œ ์ „๊ฐœ
423
  - ๋งค ํ™” ๋ ๊ฐ•๋ ฅํ•œ ํ›„ํฌ
424
  - ๋น ๋ฅธ ์ „๊ฐœ์™€ ๋ชฐ์ž…๊ฐ
 
425
 
426
+ ์ž…๋ ฅ๋œ ์Šคํ† ๋ฆฌ ์„ค์ •์„ ์ค‘์‹ฌ์œผ๋กœ ๊ตฌ์ฒด์ ์ธ 40ํ™” ํ”Œ๋กฏ๋ผ์ธ์„ ์ œ์‹œํ•˜์„ธ์š”. ๊ฐ ํ™”๋งˆ๋‹ค ํ•ต์‹ฌ ์‚ฌ๊ฑด๊ณผ ์ „๊ฐœ๋ฅผ ๋ช…์‹œํ•˜์„ธ์š”.""",
427
 
428
  "English": f"""Plan a Korean-style web novel for {genre} genre.
429
 
430
+ **[Core Story Setting - MUST base the story on this]**
431
+ {query}
432
+
433
  **Genre:** {genre}
434
  **Goal:** 40 episodes, total 16,000 words
435
 
436
+ โš ๏ธ **IMPORTANT**: You MUST base the plot on the story setting provided above. This setting is the core of the entire story, and all episodes must revolve around this setting.
437
+
438
+ **Genre Requirements (incorporate harmoniously with story setting):**
439
  - Key elements: {', '.join(genre_info.get('key_elements', []))}
440
  - Popular tropes: {', '.join(genre_info.get('popular_tropes', []))}
441
  - Must include: {', '.join(genre_info.get('must_have', []))}
442
 
443
+ **Overall Structure (based on the input story setting):**
444
+ 1. **Episodes 1-5**: Introduce protagonist and situation from the setting, present core conflict
445
+ 2. **Episodes 6-15**: Deepen conflicts from the setting, develop relationships
446
+ 3. **Episodes 16-25**: Major twist related to the setting, new revelations
447
+ 4. **Episodes 26-35**: Core conflicts from the setting reach climax
448
+ 5. **Episodes 36-40**: Resolution of all storylines started from the setting
449
 
450
  **Episode Principles:**
451
  - 400-600 words each (substantial content)
452
+ - Faithful development of the input story setting
453
  - Strong hook at episode end
454
  - Fast pacing and immersion
 
455
 
456
+ Provide detailed 40-episode plotline centered on the input story setting. Specify key events for each episode."""
457
  }
458
 
459
  return lang_prompts.get(language, lang_prompts["Korean"])