app file
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ async def root():
|
|
15 |
return FileResponse(path="static/index.html", media_type="text/html")
|
16 |
|
17 |
|
18 |
-
@app.get("/tubifier")
|
19 |
-
def image_mod(
|
20 |
|
21 |
if len(link)==0:
|
22 |
return 'Error: No link provided', None
|
@@ -30,6 +30,7 @@ def image_mod(rpunkt_switch, link):
|
|
30 |
nltk.download('punkt')
|
31 |
|
32 |
#link = 'https://www.youtube.com/watch?v=lCnHfTHkhbE'
|
|
|
33 |
lexrank_switch = True
|
34 |
html = ''
|
35 |
images = []
|
|
|
15 |
return FileResponse(path="static/index.html", media_type="text/html")
|
16 |
|
17 |
|
18 |
+
@app.get("/tubifier/{link}")
|
19 |
+
def image_mod(link):
|
20 |
|
21 |
if len(link)==0:
|
22 |
return 'Error: No link provided', None
|
|
|
30 |
nltk.download('punkt')
|
31 |
|
32 |
#link = 'https://www.youtube.com/watch?v=lCnHfTHkhbE'
|
33 |
+
rpunkt_switch = False
|
34 |
lexrank_switch = True
|
35 |
html = ''
|
36 |
images = []
|