Update app.py
Browse files
app.py
CHANGED
|
@@ -8,15 +8,12 @@ st.set_page_config(page_title="π¦π¬ Llama 2 Chatbot")
|
|
| 8 |
# Replicate Credentials
|
| 9 |
with st.sidebar:
|
| 10 |
st.title('π¦π¬ Llama 2 Chatbot')
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 14 |
else:
|
| 15 |
-
|
| 16 |
-
if not (replicate_api.startswith('r8_') and len(replicate_api)==40):
|
| 17 |
-
st.warning('Please enter your credentials!', icon='β οΈ')
|
| 18 |
-
else:
|
| 19 |
-
st.success('Proceed to entering your prompt message!', icon='π')
|
| 20 |
os.environ['REPLICATE_API_TOKEN'] = replicate_api
|
| 21 |
|
| 22 |
st.subheader('Models and parameters')
|
|
|
|
| 8 |
# Replicate Credentials
|
| 9 |
with st.sidebar:
|
| 10 |
st.title('π¦π¬ Llama 2 Chatbot')
|
| 11 |
+
|
| 12 |
+
replicate_api = st.text_input('Enter Replicate API token:', type='password')
|
| 13 |
+
if not (replicate_api.startswith('r8_') and len(replicate_api)==40):
|
| 14 |
+
st.warning('Please enter your credentials!', icon='β οΈ')
|
| 15 |
else:
|
| 16 |
+
st.success('Proceed to entering your prompt message!', icon='π')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
os.environ['REPLICATE_API_TOKEN'] = replicate_api
|
| 18 |
|
| 19 |
st.subheader('Models and parameters')
|