asofter commited on
Commit
7036e7c
1 Parent(s): e18c8b0
Files changed (3) hide show
  1. Dockerfile +3 -3
  2. README.md +0 -8
  3. app.py +1 -2
Dockerfile CHANGED
@@ -10,9 +10,9 @@ WORKDIR /app
10
 
11
  COPY ./requirements.txt /app/requirements.txt
12
 
13
- RUN pip3 install --upgrade pip
14
- RUN pip3 install -r requirements.txt
15
- RUN python3 -m spacy download en_core_web_trf
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
- execution_time_ms = round(st_time_delta.total_seconds() * 1000)
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