Spaces:
Running
Running
Add logo, update look and feel
Browse files- .streamlit/config.toml +6 -0
- app.py +8 -3
- images/OpenWormLogo.png +0 -0
- requirements.txt +0 -1
- ring.py +1 -1
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[theme]
|
| 2 |
+
font = "serif"
|
| 3 |
+
primaryColor = "#0000FF"
|
| 4 |
+
backgroundColor = "#eff7e8"
|
| 5 |
+
secondaryBackgroundColor = "#F0F0F0"
|
| 6 |
+
textColor = "#004419"
|
app.py
CHANGED
|
@@ -12,16 +12,21 @@ from ring import generate_response
|
|
| 12 |
|
| 13 |
__version__ = '0.1.4'
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
openai_api_key = None
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
with st.form("my_form"):
|
| 24 |
-
text = st.text_area("
|
| 25 |
llm_ver = st.selectbox('Which LLM version should I use?', (LLM_GPT35, LLM_GPT4, LLM_LLAMA2))
|
| 26 |
|
| 27 |
temperature = st.text_input("Temperature", value=0.1)
|
|
|
|
| 12 |
|
| 13 |
__version__ = '0.1.4'
|
| 14 |
|
| 15 |
+
col1, col2 = st.columns([3, 1])
|
| 16 |
|
| 17 |
+
with col1:
|
| 18 |
+
st.title("Project Sydney")
|
| 19 |
+
st.markdown("**OpenWorm LLM v%s** - work in progress!"%__version__)
|
| 20 |
+
|
| 21 |
+
with col2:
|
| 22 |
+
st.image("images/OpenWormLogo.png")
|
| 23 |
|
| 24 |
openai_api_key = None
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
with st.form("my_form"):
|
| 29 |
+
text = st.text_area("Ask a question related to _C. elegans_:", "What is the primary role of the C. elegans neuron AVBL?")
|
| 30 |
llm_ver = st.selectbox('Which LLM version should I use?', (LLM_GPT35, LLM_GPT4, LLM_LLAMA2))
|
| 31 |
|
| 32 |
temperature = st.text_input("Temperature", value=0.1)
|
images/OpenWormLogo.png
ADDED
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
langchain-community
|
| 2 |
langchain
|
| 3 |
openai
|
| 4 |
langchain_openai
|
|
|
|
|
|
|
| 1 |
langchain
|
| 2 |
openai
|
| 3 |
langchain_openai
|
ring.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
from
|
| 5 |
|
| 6 |
from langchain.prompts import PromptTemplate
|
| 7 |
from langchain.chains import LLMChain
|
|
|
|
| 1 |
|
| 2 |
import os
|
| 3 |
|
| 4 |
+
from langchain_openai import OpenAI
|
| 5 |
|
| 6 |
from langchain.prompts import PromptTemplate
|
| 7 |
from langchain.chains import LLMChain
|