shogi880 commited on
Commit
f3df312
1 Parent(s): 0241f9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -15,9 +15,22 @@ def generateimage1(query):
15
  def generateimage2(query):
16
  return query.replace(' ', '-') + '-chatgpt.png'
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  with gr.Blocks() as demo:
19
- gr.Markdown("**Unleash the power of AI with [ChatGPT](https://chat.openai.com) and conquer abstract prompts!** \nStable Diffusion struggles with unclear and vague directions, but by harnessing the advanced reasoning capabilities of ChatGPT, we can generate detailed and descriptive prompts for improved and unparalleled generation results. ")
20
- gr.Markdown("Example: Act as a professional character designer. Please generate prompts include detail appearance descriptions that related to the personality. Here's your first question: 'a gentle man':")
 
21
  with gr.Row():
22
  inpprompt = gr.Dropdown(list(dictionary.keys()), value=list(dictionary.keys())[0])
23
  outprompt = gr.Textbox()
 
15
  def generateimage2(query):
16
  return query.replace(' ', '-') + '-chatgpt.png'
17
 
18
+ title = "Unleash the power of AI with [ChatGPT](https://chat.openai.com) and conquer abstract prompts!"
19
+
20
+ description = """
21
+ # Unleash the power of AI with [ChatGPT](https://chat.openai.com) and conquer abstract prompts!
22
+ \nStable Diffusion struggles with unclear and vague directions, but by harnessing the advanced reasoning capabilities of ChatGPT, we can generate detailed and descriptive prompts for improved and unparalleled generation results.
23
+ """
24
+
25
+ example = """
26
+ Example:
27
+ - Act as a professional character designer. Please generate prompts include detail appearance descriptions that related to the personality. Here's your first question: 'a gentle man':
28
+ - Generate detailed prompt from abstract prompt. "a gentle man". Let's think step by step:
29
+ """
30
  with gr.Blocks() as demo:
31
+ gr.Markdown(title)
32
+ gr.Markdown(description)
33
+ gr.Markdown(example)
34
  with gr.Row():
35
  inpprompt = gr.Dropdown(list(dictionary.keys()), value=list(dictionary.keys())[0])
36
  outprompt = gr.Textbox()