Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
llm-bootcamp-projects
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zaid
llm-bootcamp-projects
Commits
929dee7d
Commit
929dee7d
authored
Oct 09, 2023
by
Hyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added footer and edited logo
parent
bd3b2783
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
8 additions
and
2 deletions
+8
-2
settings.json
Final-Project/.vscode/settings.json
+0
-0
DSD logo.png
Final-Project/DSD logo.png
+0
-0
Home.py
Final-Project/Home.py
+0
-0
1_Basic_Chatbot.py
Final-Project/Pages/1_Basic_Chatbot.py
+0
-0
2_Chatbot_Agent.py
Final-Project/Pages/2_Chatbot_Agent.py
+0
-0
3_Chat_with_your_Data.py
Final-Project/Pages/3_Chat_with_your_Data.py
+0
-0
streaming.cpython-310.pyc
Final-Project/__pycache__/streaming.cpython-310.pyc
+0
-0
utils.cpython-310.pyc
Final-Project/__pycache__/utils.cpython-310.pyc
+0
-0
streaming.py
Final-Project/streaming.py
+0
-0
10050-Medicare-and-You.pdf
Final-Project/tmp/10050-Medicare-and-You.pdf
+0
-0
Attention is all you need Blog (2).pdf
Final-Project/tmp/Attention is all you need Blog (2).pdf
+0
-0
utils.py
Final-Project/utils.py
+8
-2
No files found.
Final
Project/.vscode/settings.json
→
Final
-
Project/.vscode/settings.json
View file @
929dee7d
File moved
Final
Project/DSD logo.png
→
Final
-
Project/DSD logo.png
View file @
929dee7d
File moved
Final
Project/Home.py
→
Final
-
Project/Home.py
View file @
929dee7d
File moved
Final
Project/Pages/1_Basic_Chatbot.py
→
Final
-
Project/Pages/1_Basic_Chatbot.py
View file @
929dee7d
File moved
Final
Project/Pages/2_Chatbot_Agent.py
→
Final
-
Project/Pages/2_Chatbot_Agent.py
View file @
929dee7d
File moved
Final
Project/Pages/3_Chat_with_your_Data.py
→
Final
-
Project/Pages/3_Chat_with_your_Data.py
View file @
929dee7d
File moved
Final
Project/__pycache__/streaming.cpython-310.pyc
→
Final
-
Project/__pycache__/streaming.cpython-310.pyc
View file @
929dee7d
File moved
Final
Project/__pycache__/utils.cpython-310.pyc
→
Final
-
Project/__pycache__/utils.cpython-310.pyc
View file @
929dee7d
No preview for this file type
Final
Project/streaming.py
→
Final
-
Project/streaming.py
View file @
929dee7d
File moved
Final-Project/tmp/10050-Medicare-and-You.pdf
0 → 100644
View file @
929dee7d
File added
Final
Project/tmp/Attention is all you need Blog (2).pdf
→
Final
-
Project/tmp/Attention is all you need Blog (2).pdf
View file @
929dee7d
File moved
Final
Project/utils.py
→
Final
-
Project/utils.py
View file @
929dee7d
...
...
@@ -51,10 +51,14 @@ def configure_openai_api_key():
image
=
Image
.
open
(
"DSD logo.png"
)
# Resize the image
new_image
=
image
.
resize
((
300
,
25
0
))
new_image
=
image
.
resize
((
300
,
30
0
))
# Display the resized image in the sidebar
st
.
sidebar
.
image
(
new_image
,
width
=
300
)
st
.
sidebar
.
markdown
(
"#### <a href='https://datasciencedojo.com/' style='color:light-blue;'>Powered by Data Science Dojo</a>"
,
unsafe_allow_html
=
True
)
openai_api_key
=
st
.
sidebar
.
text_input
(
label
=
"OpenAI API Key"
,
type
=
"password"
,
...
...
@@ -62,10 +66,11 @@ def configure_openai_api_key():
placeholder
=
"sk-..."
)
if
openai_api_key
:
st
.
session_state
[
'OPENAI_API_KEY'
]
=
openai_api_key
os
.
environ
[
'OPENAI_API_KEY'
]
=
openai_api_key
else
:
st
.
error
(
"Please add your OpenAI API key to continue."
)
st
.
stop
()
return
openai_api_key
return
openai_api_key
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment