MohamedRashad commited on
Commit
fbcd34b
1 Parent(s): 381b6b9

chore: Update app description in character generator

Browse files
Files changed (2) hide show
  1. app.py +7 -3
  2. requirements.txt +2 -0
app.py CHANGED
@@ -83,12 +83,16 @@ def generate_character(world_description, persona_description, progress=gr.Progr
83
  print("Character and image generated")
84
 
85
 
 
 
 
 
 
 
86
  with gr.Blocks(title="Character Generator") as app:
87
  with gr.Column():
88
  gr.HTML("<center><h1>Character Generator</h1></center>")
89
- gr.HTML(
90
- "<center><h3>Generate a character with a persona description and a world description.</h3></center>"
91
- )
92
  with gr.Column():
93
  with gr.Row():
94
  world_description = gr.Textbox(lines=10, label="World Description", scale=4)
 
83
  print("Character and image generated")
84
 
85
 
86
+ app_description = """
87
+ - This app generates a character in JSON format based on a persona description and a world description.
88
+ - 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).
89
+ - The persona description is randomly selected from the [FinePersonas-Lite](https://huggingface.co/datasets/MohamedRashad/FinePersonas-Lite) dataset.
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)
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
  spaces
2
  transformers
 
 
3
  torch
4
  diffusers
5
  gradio_client
 
1
  spaces
2
  transformers
3
+ accelerate
4
+ sentencepiece
5
  torch
6
  diffusers
7
  gradio_client