TeamHaltmannSusanaHWCEO commited on
Commit
4eff038
1 Parent(s): d2c6d92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,11 +13,11 @@ st.title("Photo Editor V1.0")
13
 
14
  def generate_image(image_path):
15
  image = load_image(image_path)
16
- st.image(image, use_column_width=True)
17
 
18
  st.write("Generated image:")
19
  generated_image = inpaint_image(image_path)
20
- st.image(generated_image, use_column_width=True)
21
 
22
  # st.write("Generated image:")
23
  # generated_image = inpaint_image(image)
@@ -104,7 +104,7 @@ def inpaint_image(image_path):
104
  url = "https://api.andersonrobotics.com/api/v1/generate"
105
 
106
  payload = {
107
- "prompt": "a boy and a girl are playing with a ball and a cat and a dog and a cat",
108
  "num_samples": 1,
109
  "num_return": 1,
110
  "temperature": 1.0,
@@ -131,4 +131,4 @@ def inpaint_image(image_path):
131
  image_file = st.file_uploader("Upload an image", type=['jpg', 'png', 'jpeg'])
132
 
133
  if image_file is not None:
134
- generate_image(image_file)
 
13
 
14
  def generate_image(image_path):
15
  image = load_image(image_path)
16
+ st.image(image, use_column_width=True, caption="Original Image")
17
 
18
  st.write("Generated image:")
19
  generated_image = inpaint_image(image_path)
20
+ st.image(generated_image, use_column_width=True, caption="Generated Image")
21
 
22
  # st.write("Generated image:")
23
  # generated_image = inpaint_image(image)
 
104
  url = "https://api.andersonrobotics.com/api/v1/generate"
105
 
106
  payload = {
107
+ "prompt": "a boy and a girl are playing with a ball and a cat and a dog",
108
  "num_samples": 1,
109
  "num_return": 1,
110
  "temperature": 1.0,
 
131
  image_file = st.file_uploader("Upload an image", type=['jpg', 'png', 'jpeg'])
132
 
133
  if image_file is not None:
134
+ generate_image(image_file)