Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,6 @@ API_URL = "https://api-inference.huggingface.co/models/Salesforce/blip-image-cap
|
|
3 |
# Helper functions
|
4 |
import requests, json
|
5 |
import io
|
6 |
-
import IPython.display
|
7 |
-
from PIL import Image
|
8 |
import base64
|
9 |
#Image-to-text endpoint
|
10 |
def get_completion(inputs, parameters=None, ENDPOINT_URL=API_URL):
|
|
|
3 |
# Helper functions
|
4 |
import requests, json
|
5 |
import io
|
|
|
|
|
6 |
import base64
|
7 |
#Image-to-text endpoint
|
8 |
def get_completion(inputs, parameters=None, ENDPOINT_URL=API_URL):
|