PBJ commited on
Commit
bca8baf
·
1 Parent(s): 7e64a0e

Update Welcome.py

Browse files
Files changed (1) hide show
  1. Welcome.py +3 -3
Welcome.py CHANGED
@@ -76,12 +76,12 @@ if f is not None:
76
  test_df = tf.convert_to_tensor(test_df)
77
 
78
  # Inference
79
- interpreter = tf.lite.Interpreter("code\model.tflite")
80
  prediction_fn = interpreter.get_signature_runner("serving_default")
81
  output = prediction_fn(inputs=test_df)
82
  sign = np.argmax(output["outputs"])
83
 
84
- sign_json=pd.read_json("code\sign_to_prediction_index_map.json",typ='series')
85
  sign_df=pd.DataFrame(sign_json)
86
  sign_df.iloc[sign]
87
  top_indices = np.argsort(output['outputs'])[::-1][:5]
@@ -93,6 +93,6 @@ if f is not None:
93
  st.write(output_df)
94
  # callbacks : on_change, on_click
95
  # com.iframe("https://embed.lottiefiles.com/animation/132349")
96
- with open('assets\\animations\\14592-loader-cat.json') as source:
97
  animation=json.load(source)
98
  st_lottie(animation, width=300)
 
76
  test_df = tf.convert_to_tensor(test_df)
77
 
78
  # Inference
79
+ interpreter = tf.lite.Interpreter("model.tflite")
80
  prediction_fn = interpreter.get_signature_runner("serving_default")
81
  output = prediction_fn(inputs=test_df)
82
  sign = np.argmax(output["outputs"])
83
 
84
+ sign_json=pd.read_json("sign_to_prediction_index_map.json",typ='series')
85
  sign_df=pd.DataFrame(sign_json)
86
  sign_df.iloc[sign]
87
  top_indices = np.argsort(output['outputs'])[::-1][:5]
 
93
  st.write(output_df)
94
  # callbacks : on_change, on_click
95
  # com.iframe("https://embed.lottiefiles.com/animation/132349")
96
+ with open('assets/animations/14592-loader-cat.json') as source:
97
  animation=json.load(source)
98
  st_lottie(animation, width=300)