peshk1n commited on
Commit
1b0627f
·
verified ·
1 Parent(s): e8f001f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import keras
2
  import numpy as np
3
  import tensorflow as tf
4
  from tensorflow import data as tf_data
@@ -16,6 +16,7 @@ from tensorflow.keras.applications.resnet50 import ResNet50, preprocess_input
16
  from tensorflow.keras.preprocessing import image
17
  from tensorflow.keras.models import Model
18
 
 
19
 
20
  # Переменные ================================
21
  start_token = "[BOS]"
 
1
+ from tensorflow import keras
2
  import numpy as np
3
  import tensorflow as tf
4
  from tensorflow import data as tf_data
 
16
  from tensorflow.keras.preprocessing import image
17
  from tensorflow.keras.models import Model
18
 
19
+ os.environ["KERAS_BACKEND"] = "tensorflow"
20
 
21
  # Переменные ================================
22
  start_token = "[BOS]"