ikraamkb commited on
Commit
a74f8b0
·
verified ·
1 Parent(s): 1405161

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from PIL import Image
6
  summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
7
  image_captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
8
 
 
 
9
  def analyze_input(file, question=None):
10
  if file is None:
11
  return "Please upload a document or image."
 
6
  summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
7
  image_captioner = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
8
 
9
+
10
+
11
  def analyze_input(file, question=None):
12
  if file is None:
13
  return "Please upload a document or image."