Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,9 @@ import streamlit as st
|
|
| 4 |
from transformers import pipeline
|
| 5 |
import random
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Quranic ayahs dataset mapped to emotions
|
| 8 |
ayahs = {
|
| 9 |
"sad": [
|
|
@@ -40,7 +43,6 @@ def load_pipeline():
|
|
| 40 |
nlp = load_pipeline()
|
| 41 |
|
| 42 |
# UI
|
| 43 |
-
st.set_page_config(page_title="Qur’an Healing Soul - Text Emotion", page_icon="🕌")
|
| 44 |
st.title("🕌 Qur’an Healing Soul - Text Emotion")
|
| 45 |
st.write("Share how you feel in your own words, and receive an ayah for healing.")
|
| 46 |
|
|
|
|
| 4 |
from transformers import pipeline
|
| 5 |
import random
|
| 6 |
|
| 7 |
+
# ✅ ✅ Must be FIRST!
|
| 8 |
+
st.set_page_config(page_title="Qur’an Healing Soul - Text Emotion", page_icon="🕌")
|
| 9 |
+
|
| 10 |
# Quranic ayahs dataset mapped to emotions
|
| 11 |
ayahs = {
|
| 12 |
"sad": [
|
|
|
|
| 43 |
nlp = load_pipeline()
|
| 44 |
|
| 45 |
# UI
|
|
|
|
| 46 |
st.title("🕌 Qur’an Healing Soul - Text Emotion")
|
| 47 |
st.write("Share how you feel in your own words, and receive an ayah for healing.")
|
| 48 |
|