Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|