Update app.py
Browse files
app.py
CHANGED
@@ -14,21 +14,21 @@
|
|
14 |
|
15 |
# Args: 'train' for training the model anything else will skip the training and try to use already saved models
|
16 |
|
17 |
-
import tensorflow as tf
|
18 |
-
import numpy as np
|
19 |
-
import gym, time, random, threading
|
20 |
-
from keras.callbacks import TensorBoard
|
21 |
-
from keras.models import *
|
22 |
-
from keras.layers import *
|
23 |
-
from keras import backend as K
|
24 |
-
|
25 |
-
from tcl_env_dqn_1 import *
|
26 |
-
|
27 |
-
import os
|
28 |
import gradio as gr
|
29 |
from gradio.components import *
|
30 |
|
31 |
-
|
32 |
|
33 |
def main(use_default, file):
|
34 |
# if __name__ == '__main__':
|
@@ -36,6 +36,7 @@ def main(use_default, file):
|
|
36 |
|
37 |
# subprocess.run(['python', './A3C_plusplus.py'])
|
38 |
|
|
|
39 |
base = './RESULT/'
|
40 |
img_path = []
|
41 |
for i in range(1, 11):
|
|
|
14 |
|
15 |
# Args: 'train' for training the model anything else will skip the training and try to use already saved models
|
16 |
|
17 |
+
# import tensorflow as tf
|
18 |
+
# import numpy as np
|
19 |
+
# import gym, time, random, threading
|
20 |
+
# from keras.callbacks import TensorBoard
|
21 |
+
# from keras.models import *
|
22 |
+
# from keras.layers import *
|
23 |
+
# from keras import backend as K
|
24 |
+
|
25 |
+
# from tcl_env_dqn_1 import *
|
26 |
+
|
27 |
+
# import os
|
28 |
import gradio as gr
|
29 |
from gradio.components import *
|
30 |
|
31 |
+
|
32 |
|
33 |
def main(use_default, file):
|
34 |
# if __name__ == '__main__':
|
|
|
36 |
|
37 |
# subprocess.run(['python', './A3C_plusplus.py'])
|
38 |
|
39 |
+
|
40 |
base = './RESULT/'
|
41 |
img_path = []
|
42 |
for i in range(1, 11):
|