* cleanup
Browse files- Dockerfile +3 -3
- README.md +0 -8
- app.py +1 -2
Dockerfile
CHANGED
@@ -10,9 +10,9 @@ WORKDIR /app
|
|
10 |
|
11 |
COPY ./requirements.txt /app/requirements.txt
|
12 |
|
13 |
-
RUN
|
14 |
-
RUN
|
15 |
-
RUN
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|
|
|
10 |
|
11 |
COPY ./requirements.txt /app/requirements.txt
|
12 |
|
13 |
+
RUN pip install --upgrade pip
|
14 |
+
RUN pip install -r requirements.txt
|
15 |
+
RUN python -m spacy download en_core_web_trf
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|
README.md
CHANGED
@@ -8,8 +8,6 @@ pinned: false
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
-
# Simple demo website for LLM Guard
|
12 |
-
|
13 |
Here's a simple app, written in pure Python, to create a demo website for LLM Guard.
|
14 |
The app is based on the [streamlit](https://streamlit.io/) package.
|
15 |
|
@@ -30,9 +28,3 @@ pip install -r requirements.txt
|
|
30 |
```sh
|
31 |
streamlit run app.py
|
32 |
```
|
33 |
-
|
34 |
-
## Output
|
35 |
-
|
36 |
-
Output should be similar to this screenshot:
|
37 |
-
![image](./screenshot.png)
|
38 |
-
|
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
|
|
|
|
11 |
Here's a simple app, written in pure Python, to create a demo website for LLM Guard.
|
12 |
The app is based on the [streamlit](https://streamlit.io/) package.
|
13 |
|
|
|
28 |
```sh
|
29 |
streamlit run app.py
|
30 |
```
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -127,8 +127,7 @@ except Exception as e:
|
|
127 |
|
128 |
# After:
|
129 |
if st_is_valid is not None:
|
130 |
-
|
131 |
-
st.subheader(f"Results - {'valid' if st_is_valid else 'invalid'} ({execution_time_ms} ms)")
|
132 |
|
133 |
col1, col2 = st.columns(2)
|
134 |
|
|
|
127 |
|
128 |
# After:
|
129 |
if st_is_valid is not None:
|
130 |
+
st.subheader(f"Results - {'valid' if st_is_valid else 'invalid'} ({st_time_delta.total_seconds()} ms)")
|
|
|
131 |
|
132 |
col1, col2 = st.columns(2)
|
133 |
|