AchyuthGamer commited on
Commit
c9900de
1 Parent(s): 4cb1300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -19,7 +19,7 @@ proc1=gr.Interface.load("models/AchyuthGamer/ImMagician")
19
 
20
  def restart_script_periodically():
21
  while True:
22
- random_time = random.randint(5400, 6000)
23
  time.sleep(random_time)
24
  os.execl(sys.executable, sys.executable, *sys.argv)
25
 
@@ -148,7 +148,7 @@ with gr.Blocks(css='style.css') as demo:
148
  input_text = gr.Textbox(
149
  label="Short Prompt",
150
  show_label=False,
151
- max_lines=2,
152
  placeholder="Enter a basic idea and click 'Magic Prompt'. Got no ideas? No problem, Simply just hit the magic button!",
153
  ).style(
154
  container=False,min_width=1200
@@ -184,16 +184,16 @@ with gr.Blocks(css='style.css') as demo:
184
  )
185
  with gr.Row():
186
  with gr.Row():
187
- output1=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
188
- output2=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
189
  with gr.Row():
190
  with gr.Row():
191
- output3=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
192
- output4=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
193
  with gr.Row():
194
  with gr.Row():
195
- output5=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
196
- outputX=gr.Image(label="ImMagician",show_label=True,min_width=640,elem_id="gallery")
197
  #with gr.Row():
198
  #with gr.Row():
199
  #output0=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)
 
19
 
20
  def restart_script_periodically():
21
  while True:
22
+ random_time = random.randint(2400, 6000)
23
  time.sleep(random_time)
24
  os.execl(sys.executable, sys.executable, *sys.argv)
25
 
 
148
  input_text = gr.Textbox(
149
  label="Short Prompt",
150
  show_label=False,
151
+ max_lines=20,
152
  placeholder="Enter a basic idea and click 'Magic Prompt'. Got no ideas? No problem, Simply just hit the magic button!",
153
  ).style(
154
  container=False,min_width=1200
 
184
  )
185
  with gr.Row():
186
  with gr.Row():
187
+ output1=gr.Image(label="ImMagician",show_label=True,min_width=640)
188
+ output2=gr.Image(label="ImMagician",show_label=True,min_width=640)
189
  with gr.Row():
190
  with gr.Row():
191
+ output3=gr.Image(label="ImMagician",show_label=True,min_width=640)
192
+ output4=gr.Image(label="ImMagician",show_label=True,min_width=640)
193
  with gr.Row():
194
  with gr.Row():
195
+ output5=gr.Image(label="ImMagician",show_label=True,min_width=640)
196
+ outputX=gr.Image(label="ImMagician",show_label=True,min_width=640)
197
  #with gr.Row():
198
  #with gr.Row():
199
  #output0=gr.Image(label="PhotoMovieX",show_label=False,min_width=640)