Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,10 @@ BERTopic Topic Modelling Agent — Gradio Interface
|
|
| 4 |
import os
|
| 5 |
os.environ.pop("GRADIO_HOT_RELOAD", None)
|
| 6 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import pandas as pd
|
| 8 |
import json
|
| 9 |
from pathlib import Path
|
|
|
|
| 4 |
import os
|
| 5 |
os.environ.pop("GRADIO_HOT_RELOAD", None)
|
| 6 |
import gradio as gr
|
| 7 |
+
|
| 8 |
+
# Disable the /info endpoint that triggers the broken gradio_client schema parser
|
| 9 |
+
import gradio.routes as _gr_routes
|
| 10 |
+
_gr_routes.api_info = lambda *a, **kw: {}
|
| 11 |
import pandas as pd
|
| 12 |
import json
|
| 13 |
from pathlib import Path
|