Spaces:
Runtime error
Runtime error
Click to copy button
Browse files
app.py
CHANGED
@@ -96,6 +96,8 @@ if __name__ == "__main__":
|
|
96 |
with gr.Column():
|
97 |
|
98 |
base_prompt = gr.Textbox(lines=1, label="Base Prompt (Shorter is Better)", placeholder="An astronaut in space.", info="Enter a very simple prompt that will be fungineered into something exciting!")
|
|
|
|
|
99 |
extra = gr.Checkbox(value=True, label="Extra Fungineer Imagination", info="If checked, the model will be allowed to go wild with its imagination.")
|
100 |
|
101 |
with gr.Accordion("Advanced Generation Settings", open=False):
|
@@ -108,7 +110,6 @@ if __name__ == "__main__":
|
|
108 |
insp = gr.Checkbox(value=False, label="Inpsiration", info="Include inspirational photographers that are known for this type of photography. Sometimes random people will appear here, needs more training.")
|
109 |
neg = gr.Checkbox(value=False, label="Negative Prompt", info="Include a negative prompt, more often used in Stable Diffusion. If you're a Stable Diffusion user, chances are you already have a better negative prompt you like to use.")
|
110 |
|
111 |
-
submit = gr.Button(label="Fungineer",variant="primary")
|
112 |
|
113 |
|
114 |
with gr.Column():
|
@@ -119,6 +120,9 @@ if __name__ == "__main__":
|
|
119 |
gr.Textbox(lines=2, label="Fungineered Text 4"),
|
120 |
]
|
121 |
|
|
|
|
|
|
|
122 |
inputs = [base_prompt, extra, top_k, top_p, temperature, enh, insp, neg]
|
123 |
|
124 |
submit.click(generate_text, inputs=inputs, outputs=outputs)
|
|
|
96 |
with gr.Column():
|
97 |
|
98 |
base_prompt = gr.Textbox(lines=1, label="Base Prompt (Shorter is Better)", placeholder="An astronaut in space.", info="Enter a very simple prompt that will be fungineered into something exciting!")
|
99 |
+
submit = gr.Button(label="Fungineer",variant="primary")
|
100 |
+
|
101 |
extra = gr.Checkbox(value=True, label="Extra Fungineer Imagination", info="If checked, the model will be allowed to go wild with its imagination.")
|
102 |
|
103 |
with gr.Accordion("Advanced Generation Settings", open=False):
|
|
|
110 |
insp = gr.Checkbox(value=False, label="Inpsiration", info="Include inspirational photographers that are known for this type of photography. Sometimes random people will appear here, needs more training.")
|
111 |
neg = gr.Checkbox(value=False, label="Negative Prompt", info="Include a negative prompt, more often used in Stable Diffusion. If you're a Stable Diffusion user, chances are you already have a better negative prompt you like to use.")
|
112 |
|
|
|
113 |
|
114 |
|
115 |
with gr.Column():
|
|
|
120 |
gr.Textbox(lines=2, label="Fungineered Text 4"),
|
121 |
]
|
122 |
|
123 |
+
for textbox in outputs:
|
124 |
+
textbox.style(show_copy_button=True)
|
125 |
+
|
126 |
inputs = [base_prompt, extra, top_k, top_p, temperature, enh, insp, neg]
|
127 |
|
128 |
submit.click(generate_text, inputs=inputs, outputs=outputs)
|