Update utils.py
Browse files
utils.py
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Image-to-text
|
2 |
def img2txt(url: str) -> str:
|
3 |
print("Initializing captioning model...")
|
|
|
1 |
+
import os
|
2 |
+
import streamlit as st
|
3 |
+
import requests
|
4 |
+
from transformers import pipeline
|
5 |
+
from typing import Dict
|
6 |
+
from together import Together
|
7 |
+
|
8 |
# Image-to-text
|
9 |
def img2txt(url: str) -> str:
|
10 |
print("Initializing captioning model...")
|