Spaces:
Sleeping
Sleeping
Milind Kamat
commited on
Commit
·
abbb230
1
Parent(s):
b216fb7
xxxxx
Browse filesSigned-off-by: Milind Kamat <36366961+milindkamat0507@users.noreply.github.com>
app.py
CHANGED
|
@@ -607,15 +607,11 @@ def render_input_elements(self, col: st.delta_generator.DeltaGenerator) -> None:
|
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
-
|
| 611 |
def run(self) -> None:
|
| 612 |
"""
|
| 613 |
Main execution method for the Streamlit Tutorial application.
|
| 614 |
Handles topic selection and content rendering.
|
| 615 |
Manages overall application flow and state.
|
| 616 |
-
|
| 617 |
-
Returns:
|
| 618 |
-
None
|
| 619 |
"""
|
| 620 |
with st.sidebar:
|
| 621 |
st.title("Streamlit Tutorial")
|
|
@@ -636,9 +632,18 @@ def render_input_elements(self, col: st.delta_generator.DeltaGenerator) -> None:
|
|
| 636 |
self.render_input_elements(cols[0])
|
| 637 |
self.render_help_section(cols[1])
|
| 638 |
self.render_playground(cols[2], dict(self.get_input_elements()))
|
|
|
|
|
|
|
|
|
|
| 639 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 640 |
|
| 641 |
if __name__ == "__main__":
|
| 642 |
-
|
| 643 |
-
tutorial.run()
|
| 644 |
|
|
|
|
| 607 |
|
| 608 |
|
| 609 |
|
|
|
|
| 610 |
def run(self) -> None:
|
| 611 |
"""
|
| 612 |
Main execution method for the Streamlit Tutorial application.
|
| 613 |
Handles topic selection and content rendering.
|
| 614 |
Manages overall application flow and state.
|
|
|
|
|
|
|
|
|
|
| 615 |
"""
|
| 616 |
with st.sidebar:
|
| 617 |
st.title("Streamlit Tutorial")
|
|
|
|
| 632 |
self.render_input_elements(cols[0])
|
| 633 |
self.render_help_section(cols[1])
|
| 634 |
self.render_playground(cols[2], dict(self.get_input_elements()))
|
| 635 |
+
|
| 636 |
+
|
| 637 |
+
|
| 638 |
|
| 639 |
+
def main():
|
| 640 |
+
try:
|
| 641 |
+
app = StreamlitTutorial()
|
| 642 |
+
app.run()
|
| 643 |
+
except Exception as e:
|
| 644 |
+
st.error(f"Application Error: {str(e)}")
|
| 645 |
+
st.write(f"Traceback: {traceback.format_exc()}")
|
| 646 |
|
| 647 |
if __name__ == "__main__":
|
| 648 |
+
main()
|
|
|
|
| 649 |
|