datasith commited on
Commit
1a3cbe9
·
1 Parent(s): 333cabc

new model who dis

Browse files
Files changed (2) hide show
  1. app.py +6 -5
  2. model.h5 +2 -2
app.py CHANGED
@@ -35,11 +35,12 @@ familiar with Hugging Face spaces! All the necessary files are included for ever
35
  to run smoothly on HF's Spaces:
36
 
37
  - app.py
38
- - reader.py
39
- - requirements.txt
40
- - model.h5 (TensorFlow/Keras)
41
  - categories.txt
42
- - info.txt
 
 
 
 
43
 
44
  The data used to train the model is available as a
45
  [Kaggle dataset](https://www.kaggle.com/datasets/dansbecker/hot-dog-not-hot-dog).
@@ -83,7 +84,7 @@ def predict_image(image):
83
  return results
84
 
85
  # generate img input and text label output
86
- image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
87
  label = gr.outputs.Label(num_top_classes=len(labels))
88
 
89
  # generate and launch interface
 
35
  to run smoothly on HF's Spaces:
36
 
37
  - app.py
 
 
 
38
  - categories.txt
39
+ - model.h5 (TensorFlow/Keras)
40
+ - requirements.txt
41
+ - README.md
42
+ - nay.jpg (Not-hot-dog example)
43
+ - yay.jpg (Hot-dog example)
44
 
45
  The data used to train the model is available as a
46
  [Kaggle dataset](https://www.kaggle.com/datasets/dansbecker/hot-dog-not-hot-dog).
 
84
  return results
85
 
86
  # generate img input and text label output
87
+ image = gr.inputs.Image(label="Upload Your Image Here")
88
  label = gr.outputs.Label(num_top_classes=len(labels))
89
 
90
  # generate and launch interface
model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:acddc06b8340589b8fd30bfec468a79b46216d08017dad78ab909dc30994247f
3
- size 402996624
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:806bbf6debd8c4e5ce75997182b8d11d86efcb6b6f6003cc8787c0b3439f9445
3
+ size 699594072