Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
"""app.ipynb
|
3 |
+
|
4 |
+
Automatically generated by Colaboratory.
|
5 |
+
|
6 |
+
Original file is located at
|
7 |
+
https://colab.research.google.com/drive/1bXYJd-Dtj9a5gFAvEQDojckzYpN0pcRX
|
8 |
+
"""
|
9 |
+
|
10 |
+
from transformers import pipeline
|
11 |
+
|
12 |
+
question = pipeline("visual-question-answering")
|
13 |
+
|
14 |
+
question("cat.png", "how many cat are there?")
|