cagataydag commited on
Commit
c478671
·
1 Parent(s): aaf1a20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -411,7 +411,7 @@ with blocks:
411
  blocks.launch(enable_queue=True)
412
 
413
 
414
-
415
  def my_inference_function(image,text):
416
  img_dir = tempfile.mkdtemp()
417
 
@@ -432,14 +432,14 @@ def my_inference_function(image,text):
432
 
433
  return editor.predict(img_path,[text])
434
 
435
- #gradio_interface = gr.Interface(
436
- # fn = my_inference_function,
437
- # inputs = ["text","text"],
438
- # outputs = "text"
439
  # gr.outputs.Image(type="file"),
440
- #)
441
- #gradio_interface.launch(enable_queue=True)
442
-
443
 
444
  #gradio_interface = gr.Interface(
445
  # fn=editor.edit_image,
 
411
  blocks.launch(enable_queue=True)
412
 
413
 
414
+ """
415
  def my_inference_function(image,text):
416
  img_dir = tempfile.mkdtemp()
417
 
 
432
 
433
  return editor.predict(img_path,[text])
434
 
435
+ gradio_interface = gr.Interface(
436
+ fn = my_inference_function,
437
+ inputs = ["text","text"],
438
+ outputs = "text"
439
  # gr.outputs.Image(type="file"),
440
+ )
441
+ gradio_interface.launch(enable_queue=True)
442
+ """
443
 
444
  #gradio_interface = gr.Interface(
445
  # fn=editor.edit_image,