Upload RPC-Bench Space
Browse files
app.py
CHANGED
|
@@ -12,6 +12,20 @@ import gradio as gr
|
|
| 12 |
import pandas as pd
|
| 13 |
from huggingface_hub import Repository
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
from constants import (
|
| 16 |
ALL_COLUMNS,
|
| 17 |
CITATION,
|
|
|
|
| 12 |
import pandas as pd
|
| 13 |
from huggingface_hub import Repository
|
| 14 |
|
| 15 |
+
try:
|
| 16 |
+
import gradio_client.utils as gradio_client_utils
|
| 17 |
+
|
| 18 |
+
_original_get_type = gradio_client_utils.get_type
|
| 19 |
+
|
| 20 |
+
def _safe_get_type(schema):
|
| 21 |
+
if isinstance(schema, bool):
|
| 22 |
+
return "boolean"
|
| 23 |
+
return _original_get_type(schema)
|
| 24 |
+
|
| 25 |
+
gradio_client_utils.get_type = _safe_get_type
|
| 26 |
+
except Exception:
|
| 27 |
+
pass
|
| 28 |
+
|
| 29 |
from constants import (
|
| 30 |
ALL_COLUMNS,
|
| 31 |
CITATION,
|