Szeyu commited on
Commit
4b14b3d
·
verified ·
1 Parent(s): f22469a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  from transformers import pipeline
3
  import textwrap
@@ -18,6 +19,7 @@ def load_pipelines():
18
 
19
  captioner, storyer, tts = load_pipelines()
20
 
 
21
  # Function to generate content from an image
22
  def generate_content(image):
23
  pil_image = Image.open(image)
 
1
+ # import part
2
  import streamlit as st
3
  from transformers import pipeline
4
  import textwrap
 
19
 
20
  captioner, storyer, tts = load_pipelines()
21
 
22
+ # Function part
23
  # Function to generate content from an image
24
  def generate_content(image):
25
  pil_image = Image.open(image)