File size: 546 Bytes
640070d
 
 
 
 
5b29666
640070d
43d01cc
 
 
 
640070d
 
 
 
 
 
5b29666
b038ccc
5b29666
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import streamlit as st

st.markdown("### Hello, world!")
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)

import time
from transformers import pipeline
import psutil
    
nbytes = psutil.virtual_memory().total
st.text(f"{nbytes} bytes // {nbytes // 2**30} gibibytes")

def process(text):
    return text[::-1]

text = st.text_area("TEXT HERE")

for i in range(10):
    st.markdown(f'<p style="display:inline">{process(text)} ...</p>', unsafe_allow_html=True)
    time.sleep(1.0)