Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
import streamlit as st
|
3 |
+
|
4 |
+
st.write("Output of `pip freeze`:")
|
5 |
+
p = subprocess.Popen(["pip", "freeze"], stdout=subprocess.PIPE)
|
6 |
+
output = p.communicate()[0]
|
7 |
+
st.code(output.decode("utf-8"))
|
8 |
+
|
9 |
+
from transformers import AutoModelForSeq2SeqLM
|
10 |
+
|
11 |
+
st.success("imported `AutoModelForSeq2SeqLM`")
|