espejelomar commited on
Commit
8545382
·
1 Parent(s): 906dccc

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +33 -23
index.html CHANGED
@@ -1,24 +1,34 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>
13
- You can modify this app directly by editing <i>index.html</i> in the
14
- Files and versions tab.
15
- </p>
16
- <p>
17
- Also don't forget to check the
18
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank"
19
- >Spaces documentation</a
20
- >.
21
- </p>
22
- </div>
23
- </body>
24
- </html>
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <title>Cat or Dog predictor</title>
8
+ <link rel="stylesheet" href="https://unpkg.com/mvp.css">
9
+ </head>
10
+ <body>
11
+ <a href="https://github.com/nuvic/predict_image"><img loading="lazy" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_left_green_007200.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
12
+ <header>
13
+ <h1>Predict a dog or cat from an image</h1>
14
+ <p>Model provided by <a href="https://github.com/fastai/fastai">fastai</a> and api hosted by <a href="https://hf.space/embed/jph00/testing/api" target="_blank">hugging face</a>
15
+ </p>
16
+ <a href="https://github.com/nuvic/predict_image" target="_blank">Github Repo</a>
17
+ </header>
18
+ <main>
19
+ <header>
20
+ <h2>Submit a picture of either a cat or dog</h2>
21
+ <p id="prediction"></p>
22
+ <p id="error"></p>
23
+ </header>
24
+ <section>
25
+ <img id="myImage" height="400" width="400">
26
+ <form id="form">
27
+ <label for="fileInput"></label>
28
+ <input id="fileInput" type="file" onchange="onFileSelected(event)" name="File">
29
+ </form>
30
+ </section>
31
+ </main>
32
+ <script src="index.js"></script>
33
+ </body>
34
+ </html>