Chris4K commited on
Commit
d6fbd23
·
verified ·
1 Parent(s): a0ffd43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,6 +14,7 @@ from app_agent_config import AgentConfig
14
  # Create an instance of AgentConfig
15
  agent_config = AgentConfig()
16
 
 
17
 
18
  # Declare global variable
19
 
@@ -38,7 +39,7 @@ with st.sidebar:
38
  img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
39
  if img_file_buffer is not None:
40
  image_raw = Image.open(img_file_buffer)
41
- global image
42
  image = np.array(image_raw)
43
  ########
44
  st.image(image)
 
14
  # Create an instance of AgentConfig
15
  agent_config = AgentConfig()
16
 
17
+ global image
18
 
19
  # Declare global variable
20
 
 
39
  img_file_buffer = st.file_uploader('Upload a PNG image', type='png')
40
  if img_file_buffer is not None:
41
  image_raw = Image.open(img_file_buffer)
42
+ #global image
43
  image = np.array(image_raw)
44
  ########
45
  st.image(image)