File size: 361 Bytes
03c34b1
 
d04f0b4
03c34b1
 
 
d04f0b4
03c34b1
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
from main import main
import subprocess
import asyncio
# Title
st.title("Agent")
subprocess.check_call(["playwright", "install"])

# Text input
user_input = st.text_input("Input:")

# Button
if st.button("Submit"):
    with st.spinner("Processing... Please wait."):
        result = asyncio.run(main(user_input))
        st.write(result)