Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
3c8b47e
1
Parent(s):
649797e
backend
Browse files
app.py
CHANGED
|
@@ -603,18 +603,13 @@ def test_backend_api():
|
|
| 603 |
|
| 604 |
# Initialize the backend connection
|
| 605 |
print("🚀 Initializing frontend application...")
|
| 606 |
-
initialize_backend()
|
| 607 |
|
| 608 |
# Test backend connection if available
|
| 609 |
-
if BACKEND_AVAILABLE:
|
| 610 |
-
print("
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
print("✅ Backend connection test passed!")
|
| 614 |
-
test_backend_api()
|
| 615 |
-
else:
|
| 616 |
-
print("❌ Backend connection test failed!")
|
| 617 |
-
BACKEND_AVAILABLE = False
|
| 618 |
|
| 619 |
# Create the Gradio interface
|
| 620 |
print("🎨 Creating Gradio interface...")
|
|
|
|
| 603 |
|
| 604 |
# Initialize the backend connection
|
| 605 |
print("🚀 Initializing frontend application...")
|
| 606 |
+
result = initialize_backend()
|
| 607 |
|
| 608 |
# Test backend connection if available
|
| 609 |
+
if result and BACKEND_AVAILABLE:
|
| 610 |
+
print("✅ Backend connection successful!")
|
| 611 |
+
else:
|
| 612 |
+
print("❌ Backend connection failed!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 613 |
|
| 614 |
# Create the Gradio interface
|
| 615 |
print("🎨 Creating Gradio interface...")
|