Songwei Ge commited on
Commit
0a499ee
1 Parent(s): ba87c8b

update instruct

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -19,11 +19,11 @@ from PIL import Image, ImageOps
19
 
20
 
21
  help_text = """
22
- If you are getting an error or not getting what you want, here are some possible reasons and suggestions:
23
- 1. Error: the model only supports formatting the complete tooken. An error occurs when part of the token is formatted.
24
- 2. Sometimes the token map does not accurately capture the region of the formatted tokens. You may play with selecting more / less tokens to increase / decrease the area covered by the token maps.
25
  3. If you use font color and get completely corrupted results, you may consider decrease the color weight lambda.
26
- 4. Use a different seed.
27
  """
28
 
29
 
@@ -101,7 +101,8 @@ def main():
101
 
102
  with gr.Blocks() as demo:
103
  gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;">Expressive Text-to-Image Generation with Rich Text</h1>
104
- <p> Visit our <a href="https://rich-text-to-image.github.io/rich-text-to-json.html">rich-text-to-json interface</a> to generate rich-text JSON input.<p/>""")
 
105
  with gr.Row():
106
  with gr.Column():
107
  text_input = gr.Textbox(
 
19
 
20
 
21
  help_text = """
22
+ If you are encountering an error or not achieving your desired outcome, here are some potential reasons and recommendations to consider:
23
+ 1. If you format only a portion of a word rather than the complete word, an error may occur.
24
+ 2. The token map may not always accurately capture the region of the formatted tokens. If you're experiencing this problem, experiment with selecting more or fewer tokens to expand or reduce the area covered by the token maps.
25
  3. If you use font color and get completely corrupted results, you may consider decrease the color weight lambda.
26
+ 4. Consider using a different seed.
27
  """
28
 
29
 
 
101
 
102
  with gr.Blocks() as demo:
103
  gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;">Expressive Text-to-Image Generation with Rich Text</h1>
104
+ <p> Visit our <a href="https://rich-text-to-image.github.io/rich-text-to-json.html">rich-text-to-json interface</a> to generate rich-text JSON input.<p/>
105
+ <p> Project webpage: https://rich-text-to-image.github.io/<p/>""")
106
  with gr.Row():
107
  with gr.Column():
108
  text_input = gr.Textbox(