Spaces:
Sleeping
Sleeping
Commit
·
ed3a947
1
Parent(s):
8f89c2d
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly
|
|
70 |
chatresponse = openai.ChatCompletion.create(
|
71 |
model="gpt-3.5-turbo",
|
72 |
messages=[
|
73 |
-
{"role": "system", "content": "You are a Horoscope Analyser. Think step by step. Answer in details with professional tone"},
|
74 |
{"role": "user", "content": template},
|
75 |
{"role": "user", "content": "Today's date is: " + strtime},
|
76 |
{"role": "user", "content": "Husband's Moon Sign: " + m_sign},
|
@@ -105,10 +105,10 @@ def main():
|
|
105 |
col1, col2 = st.columns(2) # Create two columns
|
106 |
|
107 |
with col1:
|
108 |
-
male_sign = st.selectbox("Choose
|
109 |
|
110 |
with col2:
|
111 |
-
female_sign = st.selectbox("Choose
|
112 |
|
113 |
m_sign= male_sign
|
114 |
f_sign= female_sign
|
@@ -138,9 +138,10 @@ def main():
|
|
138 |
if st.button("Show Insights"):
|
139 |
with st.spinner("Generating Insights..."):
|
140 |
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)
|
141 |
-
st.info("**Today's is**: " + strtime + " | **
|
142 |
#st.success("Insight generated!")
|
143 |
-
st.markdown(prediction)
|
|
|
144 |
|
145 |
if __name__ == '__main__':
|
146 |
main()
|
|
|
70 |
chatresponse = openai.ChatCompletion.create(
|
71 |
model="gpt-3.5-turbo",
|
72 |
messages=[
|
73 |
+
{"role": "system", "content": "You are a Horoscope Analyser. Think step by step. Answer in details with professional and dramatic tone"},
|
74 |
{"role": "user", "content": template},
|
75 |
{"role": "user", "content": "Today's date is: " + strtime},
|
76 |
{"role": "user", "content": "Husband's Moon Sign: " + m_sign},
|
|
|
105 |
col1, col2 = st.columns(2) # Create two columns
|
106 |
|
107 |
with col1:
|
108 |
+
male_sign = st.selectbox("Choose Husband's Moon Sign", signs)
|
109 |
|
110 |
with col2:
|
111 |
+
female_sign = st.selectbox("Choose Wife's Moon Sign", signs)
|
112 |
|
113 |
m_sign= male_sign
|
114 |
f_sign= female_sign
|
|
|
138 |
if st.button("Show Insights"):
|
139 |
with st.spinner("Generating Insights..."):
|
140 |
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)
|
141 |
+
st.info("**Today's is**: " + strtime + " | **Husband's Moon Sign**: " + m_sign + " | **Wife's Moon Sign**: " + f_sign)
|
142 |
#st.success("Insight generated!")
|
143 |
+
#st.markdown(prediction)
|
144 |
+
st.text(prediction)
|
145 |
|
146 |
if __name__ == '__main__':
|
147 |
main()
|