Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,27 @@ matplotlib.use("Agg")
|
|
| 16 |
import matplotlib.pyplot as plt
|
| 17 |
from matplotlib.patches import Patch
|
| 18 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
from scipy import stats
|
| 20 |
|
| 21 |
try:
|
|
|
|
| 16 |
import matplotlib.pyplot as plt
|
| 17 |
from matplotlib.patches import Patch
|
| 18 |
import gradio as gr
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
import gradio_client.utils as _gcu
|
| 22 |
+
_orig_jsst = _gcu._json_schema_to_python_type
|
| 23 |
+
|
| 24 |
+
def _safe_jsst(schema, defs=None):
|
| 25 |
+
if not isinstance(schema, dict):
|
| 26 |
+
return "Any"
|
| 27 |
+
return _orig_jsst(schema, defs)
|
| 28 |
+
|
| 29 |
+
_gcu._json_schema_to_python_type = _safe_jsst
|
| 30 |
+
|
| 31 |
+
_orig_get_type = _gcu.get_type
|
| 32 |
+
|
| 33 |
+
def _safe_get_type(schema):
|
| 34 |
+
if not isinstance(schema, dict):
|
| 35 |
+
return "Any"
|
| 36 |
+
return _orig_get_type(schema)
|
| 37 |
+
|
| 38 |
+
_gcu.get_type = _safe_get_type
|
| 39 |
+
|
| 40 |
from scipy import stats
|
| 41 |
|
| 42 |
try:
|