Sa-m commited on
Commit
fbe3900
·
1 Parent(s): 1565986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,3 @@
1
- #import tensorflow_addons as tfa
2
  import gradio as gr
3
  import tensorflow as tf
4
  import numpy as np
@@ -44,7 +43,7 @@ def classify_image(inp):
44
  result[label] = float(predicted_class_indices[i])
45
  except KeyError:
46
  print(f"KeyError: Label not found for index {predicted_class_indices[i]}")
47
- return f"{prediction}..{predicted_class_indices}"
48
 
49
 
50
 
 
 
1
  import gradio as gr
2
  import tensorflow as tf
3
  import numpy as np
 
43
  result[label] = float(predicted_class_indices[i])
44
  except KeyError:
45
  print(f"KeyError: Label not found for index {predicted_class_indices[i]}")
46
+ return f"{prediction}...{prediction[0[2]]}..{predicted_class_indices}"
47
 
48
 
49