Thiago Andrade commited on
Commit
d19e1c4
·
1 Parent(s): 7cbf474

reroute to new route

Browse files
Files changed (3) hide show
  1. src/main.py +4 -4
  2. src/server.py +4 -4
  3. src/simpleserver.py +4 -4
src/main.py CHANGED
@@ -90,10 +90,10 @@ print(f'Finger Model successfully loaded: {finger_learn_inf}')
90
 
91
  app = FastAPI()
92
 
93
- ## Full documentation on https://thiagoh-test.hf.space/docs
94
 
95
  ## Usage
96
- # curl -X GET 'https://thiagoh-test.hf.space/?name=uia' -H "Content-Type: application/json"
97
 
98
  origins = [
99
  "http://thiagoh.github.io",
@@ -119,9 +119,9 @@ def read_root():
119
  </head>
120
  <body>
121
  <h1>Here's the available routes in this app</h1>
122
- <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-test.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
123
  <h3>Navigation details</h3>
124
- <p>Navigate to <a href="https://thiagoh-test.hf.space">https://thiagoh-test.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
125
  </body>
126
  </html>"""
127
  return HTMLResponse(content=content, status_code=200)
 
90
 
91
  app = FastAPI()
92
 
93
+ ## Full documentation on https://thiagoh-simple-predictor.hf.space/docs
94
 
95
  ## Usage
96
+ # curl -X GET 'https://thiagoh-simple-predictor.hf.space/?name=uia' -H "Content-Type: application/json"
97
 
98
  origins = [
99
  "http://thiagoh.github.io",
 
119
  </head>
120
  <body>
121
  <h1>Here's the available routes in this app</h1>
122
+ <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-simple-predictor.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
123
  <h3>Navigation details</h3>
124
+ <p>Navigate to <a href="https://thiagoh-simple-predictor.hf.space">https://thiagoh-simple-predictor.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
125
  </body>
126
  </html>"""
127
  return HTMLResponse(content=content, status_code=200)
src/server.py CHANGED
@@ -11,10 +11,10 @@ from src.modelsetup import setup_model
11
 
12
  app = FastAPI()
13
 
14
- ## Full documentation on https://thiagoh-test.hf.space/docs
15
 
16
  ## Usage
17
- # curl -X GET 'https://thiagoh-test.hf.space/?name=uia' -H "Content-Type: application/json"
18
 
19
  origins = ["http://thiagoh.github.io", "https://thiagoh.github.io"]
20
 
@@ -40,9 +40,9 @@ def read_root():
40
  </head>
41
  <body>
42
  <h1>Here's the available routes in this app</h1>
43
- <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-test.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
44
  <h3>Navigation details</h3>
45
- <p>Navigate to <a href="https://thiagoh-test.hf.space">https://thiagoh-test.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
46
  </body>
47
  </html>"""
48
  return HTMLResponse(content=content, status_code=200)
 
11
 
12
  app = FastAPI()
13
 
14
+ ## Full documentation on https://thiagoh-simple-predictor.hf.space/docs
15
 
16
  ## Usage
17
+ # curl -X GET 'https://thiagoh-simple-predictor.hf.space/?name=uia' -H "Content-Type: application/json"
18
 
19
  origins = ["http://thiagoh.github.io", "https://thiagoh.github.io"]
20
 
 
40
  </head>
41
  <body>
42
  <h1>Here's the available routes in this app</h1>
43
+ <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-simple-predictor.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
44
  <h3>Navigation details</h3>
45
+ <p>Navigate to <a href="https://thiagoh-simple-predictor.hf.space">https://thiagoh-simple-predictor.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
46
  </body>
47
  </html>"""
48
  return HTMLResponse(content=content, status_code=200)
src/simpleserver.py CHANGED
@@ -27,10 +27,10 @@ from main import GrayscaleTransform
27
  def setup_server():
28
  app = FastAPI()
29
 
30
- ## Full documentation on https://thiagoh-test.hf.space/docs
31
 
32
  ## Usage
33
- # curl -X GET 'https://thiagoh-test.hf.space/?name=uia' -H "Content-Type: application/json"
34
 
35
  origins = [
36
  "http://thiagoh.github.io",
@@ -56,9 +56,9 @@ def setup_server():
56
  </head>
57
  <body>
58
  <h1>Here's the available routes in this app</h1>
59
- <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-test.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
60
  <h3>Navigation details</h3>
61
- <p>Navigate to <a href="https://thiagoh-test.hf.space">https://thiagoh-test.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
62
  </body>
63
  </html>"""
64
  return HTMLResponse(content=content, status_code=200)
 
27
  def setup_server():
28
  app = FastAPI()
29
 
30
+ ## Full documentation on https://thiagoh-simple-predictor.hf.space/docs
31
 
32
  ## Usage
33
+ # curl -X GET 'https://thiagoh-simple-predictor.hf.space/?name=uia' -H "Content-Type: application/json"
34
 
35
  origins = [
36
  "http://thiagoh.github.io",
 
56
  </head>
57
  <body>
58
  <h1>Here's the available routes in this app</h1>
59
+ <ul>{''.join(map(lambda e: f'<li><a href="https://thiagoh-simple-predictor.hf.space{e.path}">{e.path}</a></li>', routes))}</ul>
60
  <h3>Navigation details</h3>
61
+ <p>Navigate to <a href="https://thiagoh-simple-predictor.hf.space">https://thiagoh-simple-predictor.hf.space</a> to hit the application. You can also <code>curl</code> it</p>
62
  </body>
63
  </html>"""
64
  return HTMLResponse(content=content, status_code=200)