Spaces:
Runtime error
Runtime error
Commit
·
e365617
1
Parent(s):
23ba778
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +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',
|
57 |
'reddit', 'picterest', 'discord', '']
|
|
|
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',
|
57 |
'reddit', 'picterest', 'discord', '']
|