natexcvi commited on
Commit
a26f7a8
1 Parent(s): 305a8f8

Add image display

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import requests
2
  import streamlit as st
3
 
@@ -7,7 +9,11 @@ if access_token == "":
7
  st.error("Access denied")
8
  st.stop()
9
 
 
 
10
  static_image = st.file_uploader("Upload image", type=["png", "jpg", "jpeg"])
 
 
11
 
12
  img_file_buffer = st.camera_input("Take a picture")
13
 
 
1
+ import stat
2
+
3
  import requests
4
  import streamlit as st
5
 
 
9
  st.error("Access denied")
10
  st.stop()
11
 
12
+ st.title("🤪 Facial Expression Sync Service")
13
+
14
  static_image = st.file_uploader("Upload image", type=["png", "jpg", "jpeg"])
15
+ if static_image is not None:
16
+ st.image(static_image, caption="Uploaded image", use_column_width=True)
17
 
18
  img_file_buffer = st.camera_input("Take a picture")
19