Main
about_section(container, database, export)
Function to create the about section.
Parameters:
-
container
(streamlit.container
) –Parent Container or where the content will be displayed.
-
database
(database.Repository.ChatRepositoryImp
) –Chat Repository object
-
export
(export.MarkdownToPdf.Export
) –Export object
Source code in src/project/Main.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
acknowledgements_sec()
Acknowledgements section.
Source code in src/project/Main.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
his_section(database, gemini)
Function to create the history section.
Parameters:
-
database
(database.Repository.ChatRepositoryImp
) –Chat Repository object.
-
gemini
(gemini.Gemini
) –Gemini object.
Source code in src/project/Main.py
70 71 72 73 74 75 76 77 78 79 80 81 |
|
message_container(message)
Function to create a message container.
Parameters:
-
message
(database.Session.Message
) –Message object
Source code in src/project/Main.py
39 40 41 42 43 44 45 46 47 48 49 50 |
|
populate_messages(session_id, database, gemini)
Function to populate the messages.
Parameters:
-
session_id
(int
) –Current session id
-
database
(database.Repository.ChatRepositoryImp
) –Database object
-
gemini
(gemini.Gemini
) –Gemini object
Source code in src/project/Main.py
58 59 60 61 62 63 64 65 66 67 |
|
progress_message_in_other_thread(input_message, database, gemini)
Function to process the message in another thread.
Parameters:
-
input_message
(str
) –Input from user.
-
database
(database.Repository.ChatRepositoryImp
) –Chat Repository object.
-
gemini
(gemini.Gemini
) –Gemini object.
Source code in src/project/Main.py
101 102 103 104 105 106 107 108 109 110 |
|
thinking(input_message, _database, _gemini)
Function to process the message in an async manner.
Parameters:
-
input_message
(str
) –Input from user.
-
_database
(database.Repository.ChatRepositoryImp
) –Chat Repository object.
-
_gemini
(gemini.Gemini
) –Gemini object.
Source code in src/project/Main.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|