saishravan commited on
Commit
da9233c
·
verified ·
1 Parent(s): 4ca37a7

Upload 44 files

Browse files
Files changed (44) hide show
  1. Swami1.jpeg +0 -0
  2. Transcript Data/audio/CUbujasdDYdz/indexcount +0 -0
  3. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.bloom +0 -0
  4. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.cna +0 -0
  5. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.db +3 -0
  6. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.secondary.0.bloom +0 -0
  7. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.bloom +0 -0
  8. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.cna +0 -0
  9. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.db +3 -0
  10. Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.secondary.0.bloom +0 -0
  11. Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709109642701947610.bloom +0 -0
  12. Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709109642701947610.db +0 -0
  13. Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709481122971267724.bloom +0 -0
  14. Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709481122971267724.db +0 -0
  15. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709109642451269180.bloom +0 -0
  16. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709109642451269180.db +0 -0
  17. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709481122968989220.bloom +0 -0
  18. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709481122968989220.db +0 -0
  19. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709109644815050352.bloom +0 -0
  20. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709109644815050352.db +0 -0
  21. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709481123477091645.bloom +0 -0
  22. Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709481123477091645.db +0 -0
  23. Transcript Data/audio/CUbujasdDYdz/main.hnsw.commitlog.d/1708443725 +0 -0
  24. Transcript Data/audio/CUbujasdDYdz/proplengths +1 -0
  25. Transcript Data/audio/CUbujasdDYdz/proplengths.bak +1 -0
  26. Transcript Data/audio/CUbujasdDYdz/version +0 -0
  27. Transcript Data/audiotranscript/g22qHnWDZIks/indexcount +0 -0
  28. Transcript Data/audiotranscript/g22qHnWDZIks/main.hnsw.commitlog.d/1708443716 +0 -0
  29. Transcript Data/audiotranscript/g22qHnWDZIks/proplengths +1 -0
  30. Transcript Data/audiotranscript/g22qHnWDZIks/proplengths.bak +1 -0
  31. Transcript Data/audiotranscript/g22qHnWDZIks/version +0 -0
  32. Transcript Data/classifications.db +0 -0
  33. Transcript Data/mainclass/YCrvuxzQv2uE/indexcount +0 -0
  34. Transcript Data/mainclass/YCrvuxzQv2uE/main.hnsw.commitlog.d/1708443716 +0 -0
  35. Transcript Data/mainclass/YCrvuxzQv2uE/proplengths +1 -0
  36. Transcript Data/mainclass/YCrvuxzQv2uE/proplengths.bak +1 -0
  37. Transcript Data/mainclass/YCrvuxzQv2uE/version +0 -0
  38. Transcript Data/migration1.19.filter2search.skip.flag +0 -0
  39. Transcript Data/migration1.19.filter2search.state +0 -0
  40. Transcript Data/migration1.22.fs.hierarchy +0 -0
  41. Transcript Data/modules.db +0 -0
  42. Transcript Data/schema.db +0 -0
  43. Transcript Data/tx.db +0 -0
  44. app.py +80 -0
Swami1.jpeg ADDED
Transcript Data/audio/CUbujasdDYdz/indexcount ADDED
Binary file (8 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.bloom ADDED
Binary file (180 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.cna ADDED
Binary file (12 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.db ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34416c49612557f36fa0658b599e0f2ea0edc1f402e26329eba4a72ef96a6745
3
+ size 153094830
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481141490287591.secondary.0.bloom ADDED
Binary file (180 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.bloom ADDED
Binary file (36 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.cna ADDED
Binary file (12 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.db ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:355b77aacc66e5aded004e2ef7857a9fc4989c7a14dc3cba3a9cdc8beb4ff9fa
3
+ size 6172911
Transcript Data/audio/CUbujasdDYdz/lsm/objects/segment-1709481161372270275.secondary.0.bloom ADDED
Binary file (36 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709109642701947610.bloom ADDED
Binary file (156 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709109642701947610.db ADDED
Binary file (9.61 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709481122971267724.bloom ADDED
Binary file (60 Bytes). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property__id/segment-1709481122971267724.db ADDED
Binary file (2.07 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709109642451269180.bloom ADDED
Binary file (4 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709109642451269180.db ADDED
Binary file (561 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709481122968989220.bloom ADDED
Binary file (1.28 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript/segment-1709481122968989220.db ADDED
Binary file (175 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709109644815050352.bloom ADDED
Binary file (4 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709109644815050352.db ADDED
Binary file (320 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709481123477091645.bloom ADDED
Binary file (1.28 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/lsm/property_transcript_searchable/segment-1709481123477091645.db ADDED
Binary file (76.9 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/main.hnsw.commitlog.d/1708443725 ADDED
Binary file (57.5 kB). View file
 
Transcript Data/audio/CUbujasdDYdz/proplengths ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{"transcript":{"10":2,"11":1,"12":2,"13":2,"14":6,"15":13,"16":11,"17":7,"18":21,"19":12,"20":3,"21":3,"22":2}},"SumData":{"transcript":7554},"CountData":{"transcript":85}}
Transcript Data/audio/CUbujasdDYdz/proplengths.bak ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{"transcript":{"10":2,"11":1,"12":2,"13":2,"14":6,"15":13,"16":11,"17":7,"18":21,"19":12,"20":3,"21":3,"22":2}},"SumData":{"transcript":7554},"CountData":{"transcript":85}}
Transcript Data/audio/CUbujasdDYdz/version ADDED
Binary file (2 Bytes). View file
 
Transcript Data/audiotranscript/g22qHnWDZIks/indexcount ADDED
File without changes
Transcript Data/audiotranscript/g22qHnWDZIks/main.hnsw.commitlog.d/1708443716 ADDED
File without changes
Transcript Data/audiotranscript/g22qHnWDZIks/proplengths ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{},"SumData":{},"CountData":{}}
Transcript Data/audiotranscript/g22qHnWDZIks/proplengths.bak ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{},"SumData":{},"CountData":{}}
Transcript Data/audiotranscript/g22qHnWDZIks/version ADDED
Binary file (2 Bytes). View file
 
Transcript Data/classifications.db ADDED
Binary file (32.8 kB). View file
 
Transcript Data/mainclass/YCrvuxzQv2uE/indexcount ADDED
File without changes
Transcript Data/mainclass/YCrvuxzQv2uE/main.hnsw.commitlog.d/1708443716 ADDED
File without changes
Transcript Data/mainclass/YCrvuxzQv2uE/proplengths ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{},"SumData":{},"CountData":{}}
Transcript Data/mainclass/YCrvuxzQv2uE/proplengths.bak ADDED
@@ -0,0 +1 @@
 
 
1
+ {"BucketedData":{},"SumData":{},"CountData":{}}
Transcript Data/mainclass/YCrvuxzQv2uE/version ADDED
Binary file (2 Bytes). View file
 
Transcript Data/migration1.19.filter2search.skip.flag ADDED
File without changes
Transcript Data/migration1.19.filter2search.state ADDED
File without changes
Transcript Data/migration1.22.fs.hierarchy ADDED
File without changes
Transcript Data/modules.db ADDED
Binary file (16.4 kB). View file
 
Transcript Data/schema.db ADDED
Binary file (262 kB). View file
 
Transcript Data/tx.db ADDED
Binary file (32.8 kB). View file
 
app.py ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from sentence_transformers import SentenceTransformer
3
+ import weaviate
4
+ import base64
5
+ import requests
6
+
7
+ bg_color = "#343434" # Set your desired background color
8
+ st.markdown(
9
+ f"""
10
+ <style>
11
+ body {{
12
+ background-color: {bg_color};
13
+ }}
14
+ </style>
15
+ """,
16
+ unsafe_allow_html=True,
17
+ )
18
+
19
+ st.sidebar.header("Try your query on the following: ")
20
+ topics = ["Character", "Compassion", "Culture", "Devotion", "Dharma", "Discipline", "Education", "Festivals",
21
+ "Gayatri Devi", "God", "Gratitude", "Guru", "Human Values", "India", "Love", "Meditation", "Mind",
22
+ "Money", "Namasmarana", "Parents", "Pleasure and Pain", "Practice", "Sacrifice", "Sadhana", "Senses",
23
+ "Service", "Time"]
24
+ for topic in topics:
25
+ st.sidebar.write(topic)
26
+
27
+ # Set up the layout using columns
28
+ col1, col2 = st.columns([2, 1])
29
+
30
+ # Left column: Title, Search Bar, and Search Button
31
+ with col1:
32
+ st.header('Harmony Hub: Connecting with Spiritual Messages for Inner Peace')
33
+ query_text = st.text_input('Enter your query:')
34
+ search_button = st.button('Search')
35
+
36
+ # Display the search results
37
+ if search_button:
38
+ try:
39
+ # Encode the query text
40
+ embedder = SentenceTransformer('all-MiniLM-L6-v2')
41
+ query_embeddings = embedder.encode([query_text], convert_to_tensor=True)
42
+ query_vector = query_embeddings.flatten().tolist()
43
+
44
+ # Perform Weaviate search
45
+ client = weaviate.connect_to_embedded(
46
+ persistence_data_path='/home/msc1/Apps/Transcript Data'
47
+ )
48
+ info = client.collections.get("Audio")
49
+ query_vector = query_vector
50
+ response = info.query.near_vector(
51
+ near_vector=query_vector,
52
+ limit=3,
53
+ return_properties=["audio", "transcript"]
54
+ )
55
+
56
+ result = {'audio': '', 'transcript': ''}
57
+ if response.objects:
58
+ obj = response.objects[0]
59
+ base64_audio = obj.properties.get("audio", "")
60
+ transcript = obj.properties.get("transcript", "")
61
+
62
+ if base64_audio:
63
+ decoded_audio = base64.b64decode(base64_audio.encode("utf-8"))
64
+ audio_data = base64.b64encode(decoded_audio).decode("utf-8")
65
+ result['audio'] = audio_data
66
+
67
+ result['transcript'] = transcript
68
+
69
+ # Display audio player and transcript
70
+ st.audio(base64.b64decode(result['audio']), format='audio/mp3')
71
+ st.write('Transcript:', result['transcript'])
72
+
73
+ except Exception as e:
74
+ st.write('Error:', str(e))
75
+
76
+ # Right column: Image
77
+ with col2:
78
+ image_path = '/home/msc1/Apps/Swami1.jpeg'
79
+ st.image(image_path, caption='Conscience is our real power, strength, and awareness.', use_column_width=True)
80
+