I used-
streamlit run app.py
It doesnt work so i used-
streamlit run
it opened but shows the following error-
File "C:\Users\aasth\AppData\Local\Temp\tmp27vclseo\app.py", line 1
<!DOCTYPE HTML>
^
SyntaxError: invalid syntax
MY app.py file code-----
import pickle
import string
import streamlit as st
import webbrowser
global Lrdetect_Model
LrdetectFile= open(‘file.pkl’, ‘rb’)
Lrdetect_Model=pickle.load(LrdetectFile)
LrdetectFile.close()
st.title(“ffff”)
input_test=st.text_input(“jjjjj”,‘llll’)
button_clicked=st.button(“mnmnmn”)
if button_clicked:
st.text(Lrdetect_Model.predict([input_test]))