Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
20 |
-
gr.Markdown(
|
|
|
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()
|