Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ logger = logging.getLogger(__name__)
|
|
| 28 |
|
| 29 |
# Mevcut JSON schema yaması (gerekirse korunabilir)
|
| 30 |
original_json_schema_to_python_type = client_utils._json_schema_to_python_type
|
| 31 |
-
def patched_json_schema_to_python_type(schema:
|
| 32 |
logger.debug(f"Parsing schema: {schema}")
|
| 33 |
if isinstance(schema, bool):
|
| 34 |
return "boolean"
|
|
|
|
| 28 |
|
| 29 |
# Mevcut JSON schema yaması (gerekirse korunabilir)
|
| 30 |
original_json_schema_to_python_type = client_utils._json_schema_to_python_type
|
| 31 |
+
def patched_json_schema_to_python_type(schema: any, defs: Optional[dict] = None) -> str:
|
| 32 |
logger.debug(f"Parsing schema: {schema}")
|
| 33 |
if isinstance(schema, bool):
|
| 34 |
return "boolean"
|