Spaces:
Runtime error
Runtime error
added default queries
Browse files
app.py
CHANGED
|
@@ -28,8 +28,17 @@ st.write("Kadhal Engine on Sangam Literature (WIP) - part of sangamTensor Projec
|
|
| 28 |
|
| 29 |
with st.form("my_form"):
|
| 30 |
st.write("What do want to know about sangam era's love?")
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
|
|
@@ -49,11 +58,12 @@ with st.form("my_form"):
|
|
| 49 |
for out in sample:
|
| 50 |
|
| 51 |
st.write(out["text"])
|
| 52 |
-
st.code(out["metadata"]["poemInTamilWDet"])
|
| 53 |
st.divider()
|
| 54 |
|
| 55 |
|
| 56 |
-
st.write("Contact : https://www.linkedin.com/in/prabakaranchandrantheds/")
|
| 57 |
|
|
|
|
| 58 |
st.caption("Thanks and Credits should go to Ms.Vaidehi , who put magnanimous efforts to translate these many poems! : poems and translations taken from https://sangamtranslationsbyvaidehi.com/")
|
| 59 |
-
st.caption("Thirukkural
|
|
|
|
| 28 |
|
| 29 |
with st.form("my_form"):
|
| 30 |
st.write("What do want to know about sangam era's love?")
|
| 31 |
+
|
| 32 |
+
toggle = st.checkbox('sample queries')
|
| 33 |
+
|
| 34 |
+
if toggle:
|
| 35 |
+
question_input = st.selectbox('select a query:',
|
| 36 |
+
("How was love marriage celebrated in the Sangam era, as mentioned in Akananuru?",
|
| 37 |
+
"How did the heroine express her longing to her friend, as captured in Ainkurunuru?",
|
| 38 |
+
"What makes love stronger and everlasting, according to Thirukkural?",))
|
| 39 |
+
|
| 40 |
+
else:
|
| 41 |
+
question_input = st.text_input("")
|
| 42 |
|
| 43 |
|
| 44 |
|
|
|
|
| 58 |
for out in sample:
|
| 59 |
|
| 60 |
st.write(out["text"])
|
| 61 |
+
st.code(out["metadata"]["poemInTamilWDet"].replace("\xa0", " "))
|
| 62 |
st.divider()
|
| 63 |
|
| 64 |
|
| 65 |
+
st.write("Contact : https://www.linkedin.com/in/prabakaranchandrantheds/ for Collaborations" )
|
| 66 |
|
| 67 |
+
st.caption("the LLM based Generator Part is not included to make the app up and running efficiently for everyone to use today - ping if you want to know the entire RAG flow with zephyr" )
|
| 68 |
st.caption("Thanks and Credits should go to Ms.Vaidehi , who put magnanimous efforts to translate these many poems! : poems and translations taken from https://sangamtranslationsbyvaidehi.com/")
|
| 69 |
+
st.caption("Thirukkural Credits to the Curator: https://www.kaggle.com/datasets/rahulvks/thirukkural")
|