Ritesh Khanna commited on
Commit
40b24ca
1 Parent(s): 8a1aa1e

move run button

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -94,8 +94,10 @@ if __name__ == "__main__":
94
  """)
95
  with gr.Row():
96
  with gr.Column():
 
97
  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!")
98
  extra = gr.Checkbox(value=True, label="Extra Fungineer Imagination", info="If checked, the model will be allowed to go wild with its imagination.")
 
99
  with gr.Accordion("Advanced Generation Settings", open=False):
100
  top_k = gr.Slider( minimum=10, maximum=1000, value=100, label="Top K", info="Top K sampling")
101
  top_p = gr.Slider( minimum=0.1, maximum=1, value=0.95, step=0.01, label="Top P", info="Top P sampling")
@@ -106,6 +108,9 @@ if __name__ == "__main__":
106
  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.")
107
  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.")
108
 
 
 
 
109
  with gr.Column():
110
  outputs = [
111
  gr.Textbox(lines=2, label="Fungineered Text 1"),
@@ -116,8 +121,6 @@ if __name__ == "__main__":
116
 
117
  inputs = [base_prompt, extra, top_k, top_p, temperature, enh, insp, neg]
118
 
119
-
120
- submit = gr.Button(label="Fungineer",variant="primary")
121
  submit.click(generate_text, inputs=inputs, outputs=outputs)
122
 
123
  examples = []
 
94
  """)
95
  with gr.Row():
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):
102
  top_k = gr.Slider( minimum=10, maximum=1000, value=100, label="Top K", info="Top K sampling")
103
  top_p = gr.Slider( minimum=0.1, maximum=1, value=0.95, step=0.01, label="Top P", info="Top P sampling")
 
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():
115
  outputs = [
116
  gr.Textbox(lines=2, label="Fungineered Text 1"),
 
121
 
122
  inputs = [base_prompt, extra, top_k, top_p, temperature, enh, insp, neg]
123
 
 
 
124
  submit.click(generate_text, inputs=inputs, outputs=outputs)
125
 
126
  examples = []