alexanderkroner commited on
Commit
646353b
1 Parent(s): 93c6c19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  import matplotlib.pyplot as plt
3
  import tensorflow as tf
 
4
 
5
- loaded_model = tf.saved_model.load("model/")
6
- loaded_model = loaded_model.signatures["serving_default"]
7
 
8
 
9
  def get_target_shape(original_shape):
 
1
  import gradio as gr
2
  import matplotlib.pyplot as plt
3
  import tensorflow as tf
4
+ from huggingface_hub import from_pretrained_keras
5
 
6
+ loaded_model = from_pretrained_keras("alexanderkroner/MSI-Net")
 
7
 
8
 
9
  def get_target_shape(original_shape):