Yeetek commited on
Commit
542a9ad
·
verified ·
1 Parent(s): 1f81155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  from fastapi import FastAPI, Request
2
  from fastapi.middleware.cors import CORSMiddleware
3
  from bertopic._bertopic import BERTopic # internal module that avoids plotting
 
1
+ import sys
2
+ sys.modules["bertopic.plotting"] = None # Blocks plotting from loading
3
+
4
  from fastapi import FastAPI, Request
5
  from fastapi.middleware.cors import CORSMiddleware
6
  from bertopic._bertopic import BERTopic # internal module that avoids plotting