Agreene5 commited on
Commit
f70fecd
·
1 Parent(s): bc3c633

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -14,12 +14,23 @@ input_feature_length = len(selected_options)
14
  loaded_model = tf.keras.models.load_model(f'Pokemon_Trained_Models/{input_feature_length}feature_model.HDF5')
15
  X_values = np.zeros((1,int(input_feature_length)+8))
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  #YOU NEED TO SPECIFY THE LOCATION OF EACH INPUT IN HERE VVVVV
18
  for i in selected_options:
19
- counter =+1
20
  X_values[counter-1] = st.text_input(f'What is the value for {i}?')
21
 
22
- st.write('Your values:', X_values)
23
 
24
  #-====================================================================================================================================
25
 
 
14
  loaded_model = tf.keras.models.load_model(f'Pokemon_Trained_Models/{input_feature_length}feature_model.HDF5')
15
  X_values = np.zeros((1,int(input_feature_length)+8))
16
 
17
+ options_to_positions = {
18
+ 'Type': 0
19
+ 'BST': 1
20
+ 'HP': 2
21
+ 'Attack': 3
22
+ 'Defense': 4
23
+ 'Sp.Attack': 5
24
+ 'Sp.Defense': 6
25
+ 'Speed': 7
26
+ }
27
+
28
  #YOU NEED TO SPECIFY THE LOCATION OF EACH INPUT IN HERE VVVVV
29
  for i in selected_options:
30
+ counter += 1
31
  X_values[counter-1] = st.text_input(f'What is the value for {i}?')
32
 
33
+ st.write('Your values:', X_values[(options_to_positions[i])])
34
 
35
  #-====================================================================================================================================
36