cagataydag commited on
Commit
79ca44d
·
1 Parent(s): 850fe28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -232,12 +232,7 @@ class ImageEditor(object):
232
  @_pack_edits
233
  def edit_image(self, input, output_styles, edit_choices):
234
 
235
- print("----- edit_image input -----")
236
- print(input)
237
- print("----- edit_image output_styles -----")
238
- print(output_styles)
239
- print("----- edit_image edit_choices -----")
240
- print(edit_choices)
241
 
242
  return self.predict(input, output_styles, edit_choices=edit_choices)
243
 
@@ -254,6 +249,13 @@ class ImageEditor(object):
254
  edit_choices = None, # Optional dictionary with edit choice arguments
255
  ):
256
 
 
 
 
 
 
 
 
257
  if edit_choices is None:
258
  edit_choices = {"edit_type": "None"}
259
 
@@ -413,7 +415,7 @@ def my_inference_function(image,text):
413
 
414
  gradio_interface = gr.Interface(
415
  fn = my_inference_function,
416
- inputs = ["image","text"],
417
  outputs = "text"
418
  )
419
  gradio_interface.launch()
 
232
  @_pack_edits
233
  def edit_image(self, input, output_styles, edit_choices):
234
 
235
+
 
 
 
 
 
236
 
237
  return self.predict(input, output_styles, edit_choices=edit_choices)
238
 
 
249
  edit_choices = None, # Optional dictionary with edit choice arguments
250
  ):
251
 
252
+ print("----- edit_image input -----")
253
+ print(input)
254
+ print("----- edit_image output_styles -----")
255
+ print(output_styles)
256
+ print("----- edit_image edit_choices -----")
257
+ print(edit_choices)
258
+
259
  if edit_choices is None:
260
  edit_choices = {"edit_type": "None"}
261
 
 
415
 
416
  gradio_interface = gr.Interface(
417
  fn = my_inference_function,
418
+ inputs = ["text","text"],
419
  outputs = "text"
420
  )
421
  gradio_interface.launch()