John6666 commited on
Commit
c3a12ff
·
verified ·
1 Parent(s): 2b8f0f4

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -4
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: TestDifs (Gradio 4.x)
3
  emoji: 🛕🛕
4
  colorFrom: green
5
  colorTo: blue
 
1
  ---
2
+ title: TestDifs
3
  emoji: 🛕🛕
4
  colorFrom: green
5
  colorTo: blue
app.py CHANGED
@@ -229,12 +229,12 @@ def make_me():
229
  with gr.Row():
230
  #txt_input = gr.Textbox(lines=3, width=300, max_height=100)
231
  #txt_input = gr.Textbox(label='Your prompt:', lines=3, width=300, max_height=100)
232
- txt_input = gr.Textbox(label='Your prompt:', lines=3)
233
  #gen_button = gr.Button('Generate images', width=150, height=30)
234
  #stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)
235
- gen_button = gr.Button('Generate images')
236
- stop_button = gr.Button('Stop', variant='secondary', interactive=False)
237
- with gr.Accordion("Advanced", open=False, visible=True):
238
  neg_input = gr.Textbox(label='Negative prompt:', lines=1)
239
  with gr.Row():
240
  width = gr.Number(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
 
229
  with gr.Row():
230
  #txt_input = gr.Textbox(lines=3, width=300, max_height=100)
231
  #txt_input = gr.Textbox(label='Your prompt:', lines=3, width=300, max_height=100)
232
+ txt_input = gr.Textbox(label='Your prompt:', lines=3, scale=4)
233
  #gen_button = gr.Button('Generate images', width=150, height=30)
234
  #stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150, height=30)
235
+ gen_button = gr.Button('Generate images', scale=2)
236
+ stop_button = gr.Button('Stop', variant='secondary', interactive=False, scale=1)
237
+ with gr.Accordion("Advanced", open=False, visible=True, scale=2):
238
  neg_input = gr.Textbox(label='Negative prompt:', lines=1)
239
  with gr.Row():
240
  width = gr.Number(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)