Hachem commited on
Commit
555549a
·
verified ·
1 Parent(s): a35046b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def process_image(image):
31
  with open('artikel.json', 'r') as file:
32
  data = json.load(file)
33
 
34
- predicted_class_index=str(data.ge(predicted_class_index,-1))
35
  return(predicted_class_index)
36
 
37
  interface = gr.Interface(
 
31
  with open('artikel.json', 'r') as file:
32
  data = json.load(file)
33
 
34
+ predicted_class_index=str(data.get(str(predicted_class_index),"-1"))
35
  return(predicted_class_index)
36
 
37
  interface = gr.Interface(