vishalkatheriya
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
|
|
3 |
# Initialize session state to block re-running
|
4 |
if 'has_run' not in st.session_state:
|
5 |
st.session_state.has_run = False
|
@@ -21,5 +22,6 @@ if uploaded_image is not None:
|
|
21 |
# Mark that the script has been run
|
22 |
st.session_state.has_run = True
|
23 |
st.write(task_prompt,"\n\n",text_input)
|
|
|
24 |
|
25 |
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
+
import inference
|
4 |
# Initialize session state to block re-running
|
5 |
if 'has_run' not in st.session_state:
|
6 |
st.session_state.has_run = False
|
|
|
22 |
# Mark that the script has been run
|
23 |
st.session_state.has_run = True
|
24 |
st.write(task_prompt,"\n\n",text_input)
|
25 |
+
inference.demo()
|
26 |
|
27 |
|