Jugal-sheth commited on
Commit
bcef6a3
·
1 Parent(s): 5741ff9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -49,6 +49,11 @@ def classify(img):
49
  # Return prediction with percentage
50
  return f"{class_name} ({top_perc:.2f}%)"
51
 
52
- iface = gr.Interface(classify,"image","text")
53
- #iface = gr.Interface.load('https://huggingface.co/spaces/Jugal-sheth/CIFAR10-classifier', title="CIFAR10-classifier", description="classes airplane automobile bird cat deer dog frog horse ship truck")
54
- iface.launch()
 
 
 
 
 
 
49
  # Return prediction with percentage
50
  return f"{class_name} ({top_perc:.2f}%)"
51
 
52
+ iface = gr.Interface(classify,
53
+ "image",
54
+ "text",
55
+ theme="huggingface",
56
+ title="Digit Recognition",
57
+ description="Upload Image of any Airplane Automobile Bird Cat Deer Dog Frog Horse Ship Truck and the algorithm will detect it in real time! This is CNN trained on CIFAR10 Dataset",
58
+ article="<p style='text-align: center'>CIFAR10 Classification | Demo Model by Jugal</p>",live=True)
59
+ iface.launch(debug=True)