lvelho commited on
Commit
9c41328
1 Parent(s): ef5f0b1
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import os
2
  import io
3
- import IPython.display
4
  from PIL import Image
5
 
6
  from transformers import pipeline
@@ -12,7 +11,7 @@ def summarize(input):
12
  return output[0]['generated_text']
13
 
14
  image_url = "https://free-images.com/sm/9596/dog_animal_greyhound_983023.jpg"
15
- display(IPython.display.Image(url=image_url))
16
  get_completion(image_url)
17
 
18
  import gradio as gr
 
1
  import os
2
  import io
 
3
  from PIL import Image
4
 
5
  from transformers import pipeline
 
11
  return output[0]['generated_text']
12
 
13
  image_url = "https://free-images.com/sm/9596/dog_animal_greyhound_983023.jpg"
14
+
15
  get_completion(image_url)
16
 
17
  import gradio as gr