jin-nin commited on
Commit
9e2d762
1 Parent(s): 00c544b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -1,18 +1,18 @@
1
  import gradio as gr
2
 
3
- import os
4
- import sys
5
- import threading
6
- import time
7
 
8
- def restart_script_periodically():
9
- while True:
10
- time.sleep(600) # 10 minutes
11
- try:
12
- os.execl(sys.executable, sys.executable, *sys.argv)
13
- except:
14
- pass
15
- threading.Thread(target=restart_script_periodically, daemon=True).start()
16
 
17
  imagine = gr.Interface.load( "models/dreamlike-art/dreamlike-photoreal-2.0" )
18
 
 
1
  import gradio as gr
2
 
3
+ # import os
4
+ # import sys
5
+ # import threading
6
+ # import time
7
 
8
+ # def restart_script_periodically():
9
+ # while True:
10
+ # time.sleep(600) # 10 minutes
11
+ # try:
12
+ # os.execl(sys.executable, sys.executable, *sys.argv)
13
+ # except:
14
+ # pass
15
+ # threading.Thread(target=restart_script_periodically, daemon=True).start()
16
 
17
  imagine = gr.Interface.load( "models/dreamlike-art/dreamlike-photoreal-2.0" )
18