Ashrafb commited on
Commit
52079dd
·
1 Parent(s): 868c838

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ import time
7
  from queue import Queue
8
  from threading import Thread
9
 
 
10
 
11
- proc1 = gr.Interface.load("models/segmind/SSD-1B")
12
 
13
  def restart_script_periodically():
14
  while True:
@@ -71,7 +71,7 @@ def send_it1(inputs, noise_level, style, proc=proc1):
71
  while queue.qsize() >= queue_threshold:
72
  time.sleep(2)
73
  queue.put(prompt_with_noise)
74
- output = proc(prompt_with_noise)
75
  return output
76
 
77
 
 
7
  from queue import Queue
8
  from threading import Thread
9
 
10
+ model_interface = gr.Interface.load("models/segmind/SSD-1B")
11
 
 
12
 
13
  def restart_script_periodically():
14
  while True:
 
71
  while queue.qsize() >= queue_threshold:
72
  time.sleep(2)
73
  queue.put(prompt_with_noise)
74
+ output = proc.process(prompt_with_noise)
75
  return output
76
 
77