shogi880 commited on
Commit
588563e
1 Parent(s): 204daa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ 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! Stable 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])
@@ -26,7 +26,7 @@ with gr.Blocks() as demo:
26
  out1image = gr.Image()
27
  out2image = gr.Image()
28
 
29
- btn = gr.Button("Show me one example.")
30
  btn.click(fn=chatgpt, inputs=inpprompt, outputs=outprompt)
31
  btn.click(fn=generateimage1, inputs=inpprompt, outputs=out1image)
32
  btn.click(fn=generateimage2, inputs=inpprompt, outputs=out2image)
 
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])
 
26
  out1image = gr.Image()
27
  out2image = gr.Image()
28
 
29
+ btn = gr.Button("Show me the result!")
30
  btn.click(fn=chatgpt, inputs=inpprompt, outputs=outprompt)
31
  btn.click(fn=generateimage1, inputs=inpprompt, outputs=out1image)
32
  btn.click(fn=generateimage2, inputs=inpprompt, outputs=out2image)