Spaces:
Running
Running
Commit
·
cb7065e
1
Parent(s):
8e88977
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ Add a section to notify about all the Lucky Dates.
|
|
20 |
Add a section of Couple Compatibility based on the moon signs of the couple, use your own knowledge and intelligence to deduce it.
|
21 |
Use bullets and headlines for all sections.
|
22 |
Add emojis where-ever necessary to look interesting.
|
|
|
23 |
"""
|
24 |
|
25 |
def get_daily_pred(url):
|
@@ -81,14 +82,23 @@ def predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly
|
|
81 |
{"role": "user", "content": "Wife Weekly Horoscope: " + f_weekly_pred},
|
82 |
{"role": "user", "content": "Wife Monthly Horoscope: " + f_monthly_pred}
|
83 |
],
|
84 |
-
temperature=0
|
85 |
)
|
86 |
-
time.sleep(
|
87 |
prediction = chatresponse.choices[0].message.content
|
88 |
return prediction
|
89 |
|
90 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
st.title("Couple's Horoscope Insights Using GenAI")
|
|
|
|
|
92 |
|
93 |
signs = ["Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo",
|
94 |
"Libra", "Scorpio", "Sagittarius", "Capricorn", "Aquarius", "Pisces"]
|
@@ -126,11 +136,12 @@ def main():
|
|
126 |
strtime = today.strftime("%d-%B-%Y")
|
127 |
|
128 |
|
129 |
-
if st.button("Show"):
|
130 |
-
with st.spinner("Generating
|
131 |
prediction = predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly_pred,f_monthly_pred,m_weekly_pred,f_weekly_pred)
|
132 |
-
st.
|
133 |
-
st.
|
|
|
134 |
|
135 |
if __name__ == '__main__':
|
136 |
main()
|
|
|
20 |
Add a section of Couple Compatibility based on the moon signs of the couple, use your own knowledge and intelligence to deduce it.
|
21 |
Use bullets and headlines for all sections.
|
22 |
Add emojis where-ever necessary to look interesting.
|
23 |
+
Emphasize the keywords with BOLD letters.
|
24 |
"""
|
25 |
|
26 |
def get_daily_pred(url):
|
|
|
82 |
{"role": "user", "content": "Wife Weekly Horoscope: " + f_weekly_pred},
|
83 |
{"role": "user", "content": "Wife Monthly Horoscope: " + f_monthly_pred}
|
84 |
],
|
85 |
+
temperature=0
|
86 |
)
|
87 |
+
time.sleep(1)
|
88 |
prediction = chatresponse.choices[0].message.content
|
89 |
return prediction
|
90 |
|
91 |
def main():
|
92 |
+
|
93 |
+
st.set_page_config(
|
94 |
+
page_title="Horoscope Insights",
|
95 |
+
page_icon="♏",
|
96 |
+
layout="wide"
|
97 |
+
)
|
98 |
+
|
99 |
st.title("Couple's Horoscope Insights Using GenAI")
|
100 |
+
st.caption('Based on Moon Signs')
|
101 |
+
st.markdown('Get your Moon Sign from here: https://instaastro.com/vedic-astrology/moon-sign-calculator/')
|
102 |
|
103 |
signs = ["Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo",
|
104 |
"Libra", "Scorpio", "Sagittarius", "Capricorn", "Aquarius", "Pisces"]
|
|
|
136 |
strtime = today.strftime("%d-%B-%Y")
|
137 |
|
138 |
|
139 |
+
if st.button("Show Insights"):
|
140 |
+
with st.spinner("Generating Insights..."):
|
141 |
prediction = predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly_pred,f_monthly_pred,m_weekly_pred,f_weekly_pred)
|
142 |
+
st.info("Today's is: " + strtime + " Male (Husband's) Moon Sign: " + m_sign + " Wife's Moon Sign: " + f_sign)
|
143 |
+
#st.success("Insight generated!")
|
144 |
+
st.markdown("prediction)
|
145 |
|
146 |
if __name__ == '__main__':
|
147 |
main()
|