Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -6
src/streamlit_app.py
CHANGED
|
@@ -51,7 +51,7 @@ def query(payload):
|
|
| 51 |
# --- USER INTERFACE ---
|
| 52 |
user_input = st.text_area("Welcome To The world Of MESC Ltd Where we are Branding Sustainability", placeholder="How can we help you?...")
|
| 53 |
|
| 54 |
-
if st.button("
|
| 55 |
if user_input:
|
| 56 |
with st.spinner("Analyzing... Using The Brain of Muhammad Elmleity online"):
|
| 57 |
# The prompt ensures it stays multilingual and helpful
|
|
@@ -62,7 +62,7 @@ if st.button("Generate Result"):
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
# Displaying the result
|
| 65 |
-
result = output[0]['
|
| 66 |
# Cleaning the output to show only the answer
|
| 67 |
clean_result = result.split("Task:")[1] if "Task:" in result else result
|
| 68 |
st.success(clean_result)
|
|
@@ -78,7 +78,7 @@ num_turns = st.slider("Number of turns in spiral", 1, 300, 31)
|
|
| 78 |
|
| 79 |
|
| 80 |
st.markdown("---")
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
|
|
|
| 51 |
# --- USER INTERFACE ---
|
| 52 |
user_input = st.text_area("Welcome To The world Of MESC Ltd Where we are Branding Sustainability", placeholder="How can we help you?...")
|
| 53 |
|
| 54 |
+
if st.button("Ask Mleity"):
|
| 55 |
if user_input:
|
| 56 |
with st.spinner("Analyzing... Using The Brain of Muhammad Elmleity online"):
|
| 57 |
# The prompt ensures it stays multilingual and helpful
|
|
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
# Displaying the result
|
| 65 |
+
result = output[0]['generated_text']
|
| 66 |
# Cleaning the output to show only the answer
|
| 67 |
clean_result = result.split("Task:")[1] if "Task:" in result else result
|
| 68 |
st.success(clean_result)
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
st.markdown("---")
|
| 81 |
+
st.caption("Powered by https://www.MESC.ltd" , layout="centered")
|
| 82 |
+
st.caption("Branding Sustainability" , layout="centered")
|
| 83 |
+
st.caption("اللهم انفعنا بما علمتنا" ,layout="centered")
|
| 84 |
+
st.caption("+201007590100", layout="centered")
|