Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
-
from dotenv import find_dotenv, load_dotenv
|
| 2 |
from transformers import pipeline
|
| 3 |
from langchain import PromptTemplate, LLMChain, OpenAI
|
| 4 |
import requests
|
| 5 |
import os
|
| 6 |
import streamlit as st
|
| 7 |
|
| 8 |
-
|
| 9 |
-
HF_API_KEY=
|
| 10 |
|
| 11 |
# img2text
|
| 12 |
def img2text(url):
|
|
|
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
from langchain import PromptTemplate, LLMChain, OpenAI
|
| 3 |
import requests
|
| 4 |
import os
|
| 5 |
import streamlit as st
|
| 6 |
|
| 7 |
+
|
| 8 |
+
HF_API_KEY=st.secrets["HF_API_KEY"])
|
| 9 |
|
| 10 |
# img2text
|
| 11 |
def img2text(url):
|