Spaces:
Sleeping
Sleeping
DoDucNhan
commited on
Commit
Β·
7087a23
1
Parent(s):
f03c525
change port and update default image
Browse files- app/__pycache__/__init__.cpython-310.pyc +0 -0
- app/__pycache__/routes.cpython-310.pyc +0 -0
- app/static/{cat vs dog β cat_vs_dog}/best.h5 +0 -0
- app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard1of3.bin +0 -0
- app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard2of3.bin +0 -0
- app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard3of3.bin +0 -0
- app/static/{cat vs dog β cat_vs_dog}/tfjs_model/model.json +0 -0
- app/templates/base.html +1 -1
- app/templates/cats_dogs.html +1 -1
- app/templates/flowers.html +1 -1
app/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (240 Bytes). View file
|
|
|
app/__pycache__/routes.cpython-310.pyc
ADDED
|
Binary file (667 Bytes). View file
|
|
|
app/static/{cat vs dog β cat_vs_dog}/best.h5
RENAMED
|
File without changes
|
app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard1of3.bin
RENAMED
|
File without changes
|
app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard2of3.bin
RENAMED
|
File without changes
|
app/static/{cat vs dog β cat_vs_dog}/tfjs_model/group1-shard3of3.bin
RENAMED
|
File without changes
|
app/static/{cat vs dog β cat_vs_dog}/tfjs_model/model.json
RENAMED
|
File without changes
|
app/templates/base.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
<div class='result_title'><b>Result</b></div>
|
| 38 |
<div class='result_id' id="result_info">_</div>
|
| 39 |
<img style="max-width:300px; border-radius:1rem"
|
| 40 |
-
src="https://
|
| 41 |
alt="User Image" id="display_image">
|
| 42 |
</div>
|
| 43 |
</div>
|
|
|
|
| 37 |
<div class='result_title'><b>Result</b></div>
|
| 38 |
<div class='result_id' id="result_info">_</div>
|
| 39 |
<img style="max-width:300px; border-radius:1rem"
|
| 40 |
+
src="https://www.nbmchealth.com/wp-content/uploads/2018/04/default-placeholder.png"
|
| 41 |
alt="User Image" id="display_image">
|
| 42 |
</div>
|
| 43 |
</div>
|
app/templates/cats_dogs.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
|
| 10 |
// Load model
|
| 11 |
$("document").ready(async function() {
|
| 12 |
-
model = await tf.loadLayersModel('http://
|
| 13 |
console.log('Load model');
|
| 14 |
console.log(model.summary());
|
| 15 |
});
|
|
|
|
| 9 |
|
| 10 |
// Load model
|
| 11 |
$("document").ready(async function() {
|
| 12 |
+
model = await tf.loadLayersModel('http://0.0.0.0:7860/static/cat_vs_dog/tfjs_model/model.json');
|
| 13 |
console.log('Load model');
|
| 14 |
console.log(model.summary());
|
| 15 |
});
|
app/templates/flowers.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
|
| 13 |
// Load model
|
| 14 |
$("document").ready(async function() {
|
| 15 |
-
model = await tf.loadLayersModel('http://
|
| 16 |
console.log('Load model');
|
| 17 |
console.log(model.summary());
|
| 18 |
});
|
|
|
|
| 12 |
|
| 13 |
// Load model
|
| 14 |
$("document").ready(async function() {
|
| 15 |
+
model = await tf.loadLayersModel('http://0.0.0.0:7860/static/flowers/tfjs_model/model.json');
|
| 16 |
console.log('Load model');
|
| 17 |
console.log(model.summary());
|
| 18 |
});
|