Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
import time
|
| 2 |
import json
|
| 3 |
import os
|
| 4 |
|
|
@@ -31,8 +30,24 @@ def generate(prompt):
|
|
| 31 |
yield "<<Some errors occured>>"
|
| 32 |
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
st.title("Stockmark-LLM-100b")
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
prompt = st.session_state.get("prompt", "")
|
| 37 |
response = st.session_state.get("response", "")
|
| 38 |
|
|
|
|
|
|
|
| 1 |
import json
|
| 2 |
import os
|
| 3 |
|
|
|
|
| 30 |
yield "<<Some errors occured>>"
|
| 31 |
|
| 32 |
|
| 33 |
+
@st.experimental_dialog("Disclaimer")
|
| 34 |
+
def disclaimer():
|
| 35 |
+
st.write("The response of our LLM may be incorrect, harmful, or biased.")
|
| 36 |
+
st.write("We may use users' chat data in this site to improve our LLM.")
|
| 37 |
+
|
| 38 |
+
|
| 39 |
st.title("Stockmark-LLM-100b")
|
| 40 |
|
| 41 |
+
intro = """This is a demo site for Stockmark-LLM-100b.
|
| 42 |
+
- Pretrained model: [stockmark/stockmark-100b](https://huggingface.co/stockmark/stockmark-100b)
|
| 43 |
+
- Instruction tuned model: [stockmark/stockmark-100b-instruct-v0](https://huggingface.co/stockmark/stockmark-100b-instruct-v0.1)
|
| 44 |
+
"""
|
| 45 |
+
|
| 46 |
+
st.markdown(intro)
|
| 47 |
+
|
| 48 |
+
if st.button("Disclaimer"):
|
| 49 |
+
disclaimer()
|
| 50 |
+
|
| 51 |
prompt = st.session_state.get("prompt", "")
|
| 52 |
response = st.session_state.get("response", "")
|
| 53 |
|