aseifert commited on
Commit
a4f0e58
1 Parent(s): 288b53e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import time
2
 
3
  import streamlit as st
4
-
5
  from highlighter import show_highlights
6
  from utils import (
7
  download_quantized_model,
@@ -19,6 +19,11 @@ model_names = [
19
  "prithivida/grammar_error_correcter_v2",
20
  ]
21
 
 
 
 
 
 
22
 
23
  def predict(model, args, text: str):
24
  return model.generate_text(text, args=args).text
1
  import time
2
 
3
  import streamlit as st
4
+ import subprocess
5
  from highlighter import show_highlights
6
  from utils import (
7
  download_quantized_model,
19
  "prithivida/grammar_error_correcter_v2",
20
  ]
21
 
22
+ st.write("Output of `pip freeze`:")
23
+ p = subprocess.Popen(["pip", "freeze"], stdout=subprocess.PIPE)
24
+ output = p.communicate()[0]
25
+ st.code(output.decode("utf-8"))
26
+
27
 
28
  def predict(model, args, text: str):
29
  return model.generate_text(text, args=args).text