sacj AdityA36912355 commited on
Commit
6f7c931
1 Parent(s): 0596d11

Update app.py (#6)

Browse files

- Update app.py (8ca1d82e0adc7c0a556dd258cd292dfb48b6086a)


Co-authored-by: Aditya Deshmukh <[email protected]>

Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -260,7 +260,7 @@ def custom_infer(input_image_path,
260
  input_dict = {"image": image}
261
  a, b = predict(input_dict, prompt, fitting_degree, ddim_steps, scale, seed, negative_prompt, task, left_expansion_ratio, right_expansion_ratio, top_expansion_ratio, bottom_expansion_ratio)
262
 
263
- return a, b
264
  import gradio as gr
265
 
266
  # Define the Gradio interface using the new version
@@ -281,8 +281,7 @@ inputs = [
281
  ]
282
 
283
  outputs = [
284
- gr.Image(label="Output Image"),
285
- gr.Textbox(label="Output Text")
286
  ]
287
 
288
  # Create the Gradio interface
 
260
  input_dict = {"image": image}
261
  a, b = predict(input_dict, prompt, fitting_degree, ddim_steps, scale, seed, negative_prompt, task, left_expansion_ratio, right_expansion_ratio, top_expansion_ratio, bottom_expansion_ratio)
262
 
263
+ return a[0]
264
  import gradio as gr
265
 
266
  # Define the Gradio interface using the new version
 
281
  ]
282
 
283
  outputs = [
284
+ gr.Image(label="Output Image")
 
285
  ]
286
 
287
  # Create the Gradio interface