openfree commited on
Commit
e48f1a5
·
verified ·
1 Parent(s): 7173d5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -81,18 +81,11 @@ def generate_character(world_description, persona_description, progress=gr.Progr
81
  output = json.loads(result[1][0][-1])
82
  return output
83
 
84
- app_description = """
85
- - This app generates a character in JSON format based on a persona description and a world description.
86
- - The character's appearance is generated using [FLUX-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) and the character description is generated using [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct).
87
- - The persona description is randomly selected from the [FinePersonas-Lite](https://huggingface.co/datasets/MohamedRashad/FinePersonas-Lite) dataset.
88
 
89
- **Note:** I recommend starting with the world description (you can write one or loop over randomly generated ones) and then try different persona descriptions to generate interesting characters for the world you created.
90
- """
91
 
92
- with gr.Blocks(title="Character Generator") as app:
93
  with gr.Column():
94
  gr.HTML("<center><h1>Character Generator</h1></center>")
95
- gr.Markdown(app_description.strip())
96
  with gr.Column():
97
  with gr.Row():
98
  world_description = gr.Textbox(lines=10, label="World Description", scale=4)
 
81
  output = json.loads(result[1][0][-1])
82
  return output
83
 
 
 
 
 
84
 
 
 
85
 
86
+ with gr.Blocks(title="캐릭터 자동 생성",theme="Nymbo/Nymbo_Theme") as app:
87
  with gr.Column():
88
  gr.HTML("<center><h1>Character Generator</h1></center>")
 
89
  with gr.Column():
90
  with gr.Row():
91
  world_description = gr.Textbox(lines=10, label="World Description", scale=4)