Spaces:
Running
Running
Commit
·
2d6d337
1
Parent(s):
abb32f1
fix: Change documentation screen from Blocks to Column for proper navigation
Browse filesFix navigation issue where documentation_screen was a gr.Blocks() object
instead of gr.Column(), causing ValueError when trying to control visibility.
Changes:
- Updated create_documentation_screen() to return gr.Column(visible=False)
- Fixed standalone testing to wrap Column in Blocks context
- Now properly integrates with app navigation system
- screens/documentation.py +6 -3
screens/documentation.py
CHANGED
|
@@ -1556,9 +1556,9 @@ def create_documentation_screen():
|
|
| 1556 |
Create the complete documentation screen with tabs
|
| 1557 |
|
| 1558 |
Returns:
|
| 1559 |
-
gr.
|
| 1560 |
"""
|
| 1561 |
-
with gr.
|
| 1562 |
gr.Markdown("""
|
| 1563 |
# 📚 TraceMind Documentation
|
| 1564 |
|
|
@@ -1602,5 +1602,8 @@ def create_documentation_screen():
|
|
| 1602 |
|
| 1603 |
if __name__ == "__main__":
|
| 1604 |
# For standalone testing
|
| 1605 |
-
|
|
|
|
|
|
|
|
|
|
| 1606 |
demo.launch()
|
|
|
|
| 1556 |
Create the complete documentation screen with tabs
|
| 1557 |
|
| 1558 |
Returns:
|
| 1559 |
+
gr.Column: Gradio Column component for documentation (can be shown/hidden)
|
| 1560 |
"""
|
| 1561 |
+
with gr.Column(visible=False) as documentation_interface:
|
| 1562 |
gr.Markdown("""
|
| 1563 |
# 📚 TraceMind Documentation
|
| 1564 |
|
|
|
|
| 1602 |
|
| 1603 |
if __name__ == "__main__":
|
| 1604 |
# For standalone testing
|
| 1605 |
+
with gr.Blocks() as demo:
|
| 1606 |
+
doc_screen = create_documentation_screen()
|
| 1607 |
+
# Make it visible for standalone testing
|
| 1608 |
+
doc_screen.visible = True
|
| 1609 |
demo.launch()
|