Spaces:
Runtime error
Runtime error
Commit
·
1c58145
1
Parent(s):
e365617
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ def TopicClassification(payload: TextIn):
|
|
51 |
# https://hinacortus-api-knowyouraudience.hf.space/whichsocial/myspace
|
52 |
@app.get("/whichsocial/{request}")
|
53 |
def whichsocial(request):
|
|
|
54 |
if ('http' in request or 'https' in request or 'www' in request or '.com' in request or '.fr' in request):
|
55 |
request = "website"
|
56 |
listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
|
|
|
51 |
# https://hinacortus-api-knowyouraudience.hf.space/whichsocial/myspace
|
52 |
@app.get("/whichsocial/{request}")
|
53 |
def whichsocial(request):
|
54 |
+
website = "npt found"
|
55 |
if ('http' in request or 'https' in request or 'www' in request or '.com' in request or '.fr' in request):
|
56 |
request = "website"
|
57 |
listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
|