JamesKim commited on
Commit
2dc6e3e
1 Parent(s): 45f4f71

background

Browse files
Files changed (2) hide show
  1. app.py +8 -2
  2. images/monkey_PNG18720.png +0 -0
app.py CHANGED
@@ -68,8 +68,14 @@ def main():
68
 
69
  st.write("Your photo filename:", photo_filename)
70
 
71
- x = st.slider('Slect a value')
72
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
73
 
74
  if __name__ == '__main__':
75
  main()
 
68
 
69
  st.write("Your photo filename:", photo_filename)
70
 
71
+ if photo_filename:
72
+ image = Image.open(photo_filename)
73
+ im_size = f"{image.size[0]}x{image.size[1]}" # width x height
74
+ st.write(f"Your photo filename: {photo_filename} with size of {im_size}")
75
+ prompt = st.text_input("Prompt to transform to avatar: ",
76
+ value="Change background to a beautiful sunset over the ocean")
77
+ if prompt:
78
+ st.write("Prompt:", prompt)
79
 
80
  if __name__ == '__main__':
81
  main()
images/monkey_PNG18720.png CHANGED