File size: 469 Bytes
1919d85
 
d8434ba
1919d85
d8434ba
 
1919d85
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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`")