Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
069b482
1
Parent(s):
0fa54db
vggt
Browse files
app.py
CHANGED
|
@@ -25,6 +25,22 @@ def initialize_backend():
|
|
| 25 |
print(f"🔧 Backend API object type: {type(backend_api)}")
|
| 26 |
print(f"🔧 Backend API object attributes: {dir(backend_api)}")
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
# Check if it's a Blocks object and has fns
|
| 29 |
if hasattr(backend_api, 'fns') and backend_api.fns:
|
| 30 |
print(f"✅ Backend connection successful!")
|
|
|
|
| 25 |
print(f"🔧 Backend API object type: {type(backend_api)}")
|
| 26 |
print(f"🔧 Backend API object attributes: {dir(backend_api)}")
|
| 27 |
|
| 28 |
+
# Detailed debugging of key attributes
|
| 29 |
+
if hasattr(backend_api, 'predict'):
|
| 30 |
+
print(f"🔧 predict type: {type(backend_api.predict)}")
|
| 31 |
+
print(f"🔧 predict content: {backend_api.predict}")
|
| 32 |
+
if hasattr(backend_api.predict, '__call__'):
|
| 33 |
+
print("✅ predict is callable")
|
| 34 |
+
else:
|
| 35 |
+
print("❌ predict is not callable")
|
| 36 |
+
|
| 37 |
+
if hasattr(backend_api, 'fns'):
|
| 38 |
+
print(f"🔧 fns type: {type(backend_api.fns)}")
|
| 39 |
+
print(f"🔧 fns content: {backend_api.fns}")
|
| 40 |
+
|
| 41 |
+
if hasattr(backend_api, 'call_function'):
|
| 42 |
+
print(f"🔧 call_function type: {type(backend_api.call_function)}")
|
| 43 |
+
|
| 44 |
# Check if it's a Blocks object and has fns
|
| 45 |
if hasattr(backend_api, 'fns') and backend_api.fns:
|
| 46 |
print(f"✅ Backend connection successful!")
|