Spaces:
Running
Running
Update app.py
Browse files
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."
|