Spaces:
Sleeping
Sleeping
Vatsal Gupta commited on
Updated the code
Browse files- .devcontainer/devcontainer.json +1 -1
- .huggingface/README.md +0 -13
- README.md +16 -0
- src/app.py +6 -0
.devcontainer/devcontainer.json
CHANGED
|
@@ -62,7 +62,7 @@
|
|
| 62 |
}
|
| 63 |
}
|
| 64 |
},
|
| 65 |
-
"image": "mcr.microsoft.com/devcontainers/python:3.12
|
| 66 |
"postCreateCommand": "chmod +x ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh && ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh",
|
| 67 |
"runArgs": [
|
| 68 |
"--rm",
|
|
|
|
| 62 |
}
|
| 63 |
}
|
| 64 |
},
|
| 65 |
+
"image": "mcr.microsoft.com/devcontainers/python:3.12",
|
| 66 |
"postCreateCommand": "chmod +x ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh && ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh",
|
| 67 |
"runArgs": [
|
| 68 |
"--rm",
|
.huggingface/README.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Gemini Chatbot
|
| 3 |
-
sdk: docker
|
| 4 |
-
app_port: 8501
|
| 5 |
-
tags:
|
| 6 |
-
- streamlit
|
| 7 |
-
- genai
|
| 8 |
-
- python
|
| 9 |
-
- google
|
| 10 |
-
pinned: false
|
| 11 |
-
short_description: A conversational chatbot powered by Google's Gemini models
|
| 12 |
-
license: apache-2.0
|
| 13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Gemini Chatbot
|
| 2 |
|
| 3 |
[](https://img.shields.io/github/license/gvatsal60/gemini-chatbot)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Gemini Chatbot
|
| 3 |
+
sdk: docker
|
| 4 |
+
python_version: 3.12
|
| 5 |
+
app_port: 8501
|
| 6 |
+
tags:
|
| 7 |
+
- streamlit
|
| 8 |
+
- genai
|
| 9 |
+
- python
|
| 10 |
+
- google
|
| 11 |
+
pinned: false
|
| 12 |
+
short_description: A conversational chatbot powered by Google's Gemini models
|
| 13 |
+
license: apache-2.0
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- markdownlint-disable MD025 -->
|
| 17 |
# Gemini Chatbot
|
| 18 |
|
| 19 |
[](https://img.shields.io/github/license/gvatsal60/gemini-chatbot)
|
src/app.py
CHANGED
|
@@ -74,6 +74,12 @@ with st.sidebar:
|
|
| 74 |
help='Choose a Gemini model'
|
| 75 |
)
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
st.title('💬 Q&A Chatbot')
|
| 78 |
|
| 79 |
initialize_session()
|
|
|
|
| 74 |
help='Choose a Gemini model'
|
| 75 |
)
|
| 76 |
|
| 77 |
+
st.set_page_config(
|
| 78 |
+
page_title="Gemini Chatbot",
|
| 79 |
+
page_icon=":ghost:", # Optional: set a favicon
|
| 80 |
+
layout="centered", # Optional: set page layout
|
| 81 |
+
initial_sidebar_state="auto" # Optional: set sidebar state
|
| 82 |
+
)
|
| 83 |
st.title('💬 Q&A Chatbot')
|
| 84 |
|
| 85 |
initialize_session()
|