aseifert's picture
Update app.py
d8434ba
raw
history blame contribute delete
469 Bytes
import subprocess
import streamlit as st
from streamlit.components.v1 import html
script_html = '<script defer data-domain="huggingface.co" src="https://plausible.io/js/plausible.js"></script>'
html(script_html)
st.write("Output of `pip freeze`:")
p = subprocess.Popen(["pip", "freeze"], stdout=subprocess.PIPE)
output = p.communicate()[0]
st.code(output.decode("utf-8"))
from transformers import AutoModelForSeq2SeqLM
st.success("imported `AutoModelForSeq2SeqLM`")