We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbc27a commit 32d4f71Copy full SHA for 32d4f71
DocSum/ui/gradio/docsum_ui_gradio.py
@@ -313,11 +313,17 @@ def render(self):
313
if __name__ == "__main__":
314
import argparse
315
316
+ import nltk
317
+
318
parser = argparse.ArgumentParser()
319
parser.add_argument("--host", type=str, default="0.0.0.0")
320
parser.add_argument("--port", type=int, default=5173)
321
322
args = parser.parse_args()
323
logger.info(">>> Starting server at %s:%d", args.host, args.port)
324
325
+ # Needed for UnstructuredURLLoader when reading content from a URL
326
+ nltk.download("punkt_tab")
327
+ nltk.download("averaged_perceptron_tagger_eng")
328
329
uvicorn.run(app, host=args.host, port=args.port)
0 commit comments