Spaces:
Runtime error
Runtime error
Commit
•
26648cc
1
Parent(s):
73e6e91
take actual url parameter to summarize
Browse files- app/app.py +2 -2
app/app.py
CHANGED
@@ -22,9 +22,9 @@ def read_item(item_id: int, q: Union[str, None] = None):
|
|
22 |
@app.post("/summarize")
|
23 |
async def summarize(text: str):
|
24 |
|
25 |
-
url = 'https://towardsdatascience.com/containerizing-huggingface-transformers-for-gpu-inference-with-docker-and-fastapi-on-aws-d4a83edede2f'
|
26 |
|
27 |
-
article = Article(
|
28 |
article.download()
|
29 |
|
30 |
article.parse()
|
|
|
22 |
@app.post("/summarize")
|
23 |
async def summarize(text: str):
|
24 |
|
25 |
+
# url = 'https://towardsdatascience.com/containerizing-huggingface-transformers-for-gpu-inference-with-docker-and-fastapi-on-aws-d4a83edede2f'
|
26 |
|
27 |
+
article = Article(text)
|
28 |
article.download()
|
29 |
|
30 |
article.parse()
|