Spaces:
Sleeping
Sleeping
V2 improved url deduplication algorithm
Browse files- .gitignore +3 -1
- README.md +3 -3
- router.py +5 -0
- searcher.py.gpg +0 -0
.gitignore
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
searcher.py
|
|
|
|
|
|
1 |
+
searcher.py
|
2 |
+
README.md
|
3 |
+
*.ipynb
|
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
title: Searcher
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
short_description: '--'
|
|
|
1 |
---
|
2 |
title: Searcher
|
3 |
+
emoji: π
|
4 |
+
colorFrom: Black
|
5 |
+
colorTo: white
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
short_description: '--'
|
router.py
CHANGED
@@ -23,6 +23,11 @@ class UserData(BaseModel):
|
|
23 |
class InputData(BaseModel):
|
24 |
data: List[UserData]
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
@app.post("/get")
|
27 |
async def run_script(input_Data: InputData, token: str = Header(None, alias="api-token")):
|
28 |
try:
|
|
|
23 |
class InputData(BaseModel):
|
24 |
data: List[UserData]
|
25 |
|
26 |
+
|
27 |
+
@app.post("/")
|
28 |
+
async def run_script():
|
29 |
+
return "Visit /docs !!!"
|
30 |
+
|
31 |
@app.post("/get")
|
32 |
async def run_script(input_Data: InputData, token: str = Header(None, alias="api-token")):
|
33 |
try:
|
searcher.py.gpg
CHANGED
Binary files a/searcher.py.gpg and b/searcher.py.gpg differ
|
|