Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -649,7 +649,7 @@ def main():
|
|
| 649 |
|
| 650 |
|
| 651 |
if selected_view == 'Show as Markdown':
|
| 652 |
-
Label = '
|
| 653 |
st.markdown(Label)
|
| 654 |
total_docs = len(documents)
|
| 655 |
doc = documents[st.session_state.current_index]
|
|
@@ -692,7 +692,7 @@ def main():
|
|
| 692 |
|
| 693 |
|
| 694 |
elif selected_view == 'Show as Code Editor':
|
| 695 |
-
Label = '
|
| 696 |
st.markdown(Label)
|
| 697 |
total_docs = len(documents)
|
| 698 |
doc = documents[st.session_state.current_index]
|
|
@@ -743,7 +743,7 @@ def main():
|
|
| 743 |
|
| 744 |
|
| 745 |
elif selected_view == 'Show as Run AI':
|
| 746 |
-
Label = '
|
| 747 |
st.markdown(Label)
|
| 748 |
num_cols = len(documents_to_display)
|
| 749 |
cols = st.columns(num_cols)
|
|
@@ -889,7 +889,7 @@ def main():
|
|
| 889 |
st.subheader(f"π Container: {st.session_state.selected_container}")
|
| 890 |
if st.session_state.selected_container:
|
| 891 |
if documents_to_display:
|
| 892 |
-
Label = '
|
| 893 |
st.markdown(Label)
|
| 894 |
df = pd.DataFrame(documents_to_display)
|
| 895 |
st.dataframe(df)
|
|
@@ -897,7 +897,7 @@ def main():
|
|
| 897 |
st.info("No documents to display. π§")
|
| 898 |
|
| 899 |
|
| 900 |
-
Label = '
|
| 901 |
st.subheader("π GitHub Operations")
|
| 902 |
github_token = os.environ.get("GITHUB")
|
| 903 |
source_repo = st.text_input("Source GitHub Repository URL",
|
|
@@ -953,7 +953,7 @@ def main():
|
|
| 953 |
user_input = st.text_area("Message π¨:", height=100)
|
| 954 |
|
| 955 |
if st.button("Send π¨"):
|
| 956 |
-
Label = '
|
| 957 |
st.markdown(Label)
|
| 958 |
if user_input:
|
| 959 |
response = client.messages.create(
|
|
@@ -1034,7 +1034,7 @@ def main():
|
|
| 1034 |
st.error(f"An unexpected error occurred: {str(e)} π±")
|
| 1035 |
|
| 1036 |
if st.session_state.logged_in and st.sidebar.button("πͺ Logout"):
|
| 1037 |
-
Label = '
|
| 1038 |
st.markdown(Label)
|
| 1039 |
st.session_state.logged_in = False
|
| 1040 |
st.session_state.selected_records.clear()
|
|
|
|
| 649 |
|
| 650 |
|
| 651 |
if selected_view == 'Show as Markdown':
|
| 652 |
+
Label = '#### π Markdown view - Mark it down, mark it up'
|
| 653 |
st.markdown(Label)
|
| 654 |
total_docs = len(documents)
|
| 655 |
doc = documents[st.session_state.current_index]
|
|
|
|
| 692 |
|
| 693 |
|
| 694 |
elif selected_view == 'Show as Code Editor':
|
| 695 |
+
Label = '#### π» Code editor view'
|
| 696 |
st.markdown(Label)
|
| 697 |
total_docs = len(documents)
|
| 698 |
doc = documents[st.session_state.current_index]
|
|
|
|
| 743 |
|
| 744 |
|
| 745 |
elif selected_view == 'Show as Run AI':
|
| 746 |
+
Label = '#### βοΈ Run AI with wisdom, save with precision'
|
| 747 |
st.markdown(Label)
|
| 748 |
num_cols = len(documents_to_display)
|
| 749 |
cols = st.columns(num_cols)
|
|
|
|
| 889 |
st.subheader(f"π Container: {st.session_state.selected_container}")
|
| 890 |
if st.session_state.selected_container:
|
| 891 |
if documents_to_display:
|
| 892 |
+
Label = '#### π Data display - Data tells tales that words cannot'
|
| 893 |
st.markdown(Label)
|
| 894 |
df = pd.DataFrame(documents_to_display)
|
| 895 |
st.dataframe(df)
|
|
|
|
| 897 |
st.info("No documents to display. π§")
|
| 898 |
|
| 899 |
|
| 900 |
+
Label = '#### π GitHub integration - Git happens'
|
| 901 |
st.subheader("π GitHub Operations")
|
| 902 |
github_token = os.environ.get("GITHUB")
|
| 903 |
source_repo = st.text_input("Source GitHub Repository URL",
|
|
|
|
| 953 |
user_input = st.text_area("Message π¨:", height=100)
|
| 954 |
|
| 955 |
if st.button("Send π¨"):
|
| 956 |
+
Label = '#### π¬ Chat functionality - Every chat is a chance to learn'
|
| 957 |
st.markdown(Label)
|
| 958 |
if user_input:
|
| 959 |
response = client.messages.create(
|
|
|
|
| 1034 |
st.error(f"An unexpected error occurred: {str(e)} π±")
|
| 1035 |
|
| 1036 |
if st.session_state.logged_in and st.sidebar.button("πͺ Logout"):
|
| 1037 |
+
Label = '#### πͺ Logout - All good things must come to an end'
|
| 1038 |
st.markdown(Label)
|
| 1039 |
st.session_state.logged_in = False
|
| 1040 |
st.session_state.selected_records.clear()
|