Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,11 +68,6 @@ def _get_llm():
|
|
| 68 |
|
| 69 |
@st.cache_data
|
| 70 |
def _get_icons_list() -> List[str]:
|
| 71 |
-
"""
|
| 72 |
-
Get a list of available icons names without the dir name and file extension.
|
| 73 |
-
|
| 74 |
-
:return: A llist of the icons.
|
| 75 |
-
"""
|
| 76 |
|
| 77 |
return ice.get_icons_list()
|
| 78 |
|
|
@@ -113,32 +108,6 @@ def build_ui():
|
|
| 113 |
|
| 114 |
|
| 115 |
def set_up_chat_ui():
|
| 116 |
-
"""
|
| 117 |
-
Prepare the chat interface and related functionality.
|
| 118 |
-
"""
|
| 119 |
-
with st.expander('Usage Instructions'):
|
| 120 |
-
st.markdown(GlobalConfig.CHAT_USAGE_INSTRUCTIONS)
|
| 121 |
-
st.markdown(
|
| 122 |
-
'**AI SlideMaker** is our FYP project (Module 1) under the supervision of Maam Fouzia. '
|
| 123 |
-
'It is powered by [Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407). '
|
| 124 |
-
'Group members: Usman Yousaf, Faisal Nawaz Khan, Mahnoor Asghar.'
|
| 125 |
-
)
|
| 126 |
-
st.info(
|
| 127 |
-
'As this is an academic project, we are limited in the time we can dedicate to development. '
|
| 128 |
-
'However, we are committed to enhancing **AI SlideMaker** over time, adding more features and improvements based on your suggestions. '
|
| 129 |
-
'Your support means a lot to us—please consider leaving a heart ❤️ and sharing your feedback. '
|
| 130 |
-
'Every bit of encouragement helps us make this tool as useful as possible for the public!'
|
| 131 |
-
)
|
| 132 |
-
|
| 133 |
-
# Feedback Section
|
| 134 |
-
with st.expander('Leave Your Feedback'):
|
| 135 |
-
feedback = st.text_area("We would love to hear your thoughts! Please share your feedback or suggestions below:")
|
| 136 |
-
if st.button("Submit Feedback"):
|
| 137 |
-
# Here, you can implement the logic to handle feedback submission
|
| 138 |
-
st.success("Thank you for your feedback! We appreciate your support.")
|
| 139 |
-
# Optionally, save feedback to a file or a database
|
| 140 |
-
with open("feedback.txt", "a") as f:
|
| 141 |
-
f.write(feedback + "\n")
|
| 142 |
|
| 143 |
st.chat_message('ai').write(
|
| 144 |
random.choice(APP_TEXT['ai_greetings'])
|
|
|
|
| 68 |
|
| 69 |
@st.cache_data
|
| 70 |
def _get_icons_list() -> List[str]:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
return ice.get_icons_list()
|
| 73 |
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
def set_up_chat_ui():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
st.chat_message('ai').write(
|
| 113 |
random.choice(APP_TEXT['ai_greetings'])
|