Slyfox12 commited on
Commit
e30fc0e
·
verified ·
1 Parent(s): 2f12575

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -24
app.py CHANGED
@@ -1,4 +1,3 @@
1
- from dotenv import load_dotenv, find_dotenv
2
  import requests
3
  import os
4
  import streamlit as st
@@ -9,9 +8,9 @@ import soundfile as sf
9
 
10
  # print(torch.cuda.is_available())
11
 
12
- load_dotenv(find_dotenv())
13
- HUGGINGFACEHUB_API_TOKEN = os.getenv("token")
14
- headers = {"Authorization": f"Bearer {HUGGINGFACEHUB_API_TOKEN}"}
15
 
16
  def img2text(path):
17
 
@@ -108,24 +107,6 @@ def main():
108
  st.audio("audio.wav")
109
 
110
  if __name__ == "__main__":
111
- # main()
112
- scene = img2text("couples.jpg")
113
- story = generate_story(scene)
114
- # gen_audio(story)
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
 
 
 
1
  import requests
2
  import os
3
  import streamlit as st
 
8
 
9
  # print(torch.cuda.is_available())
10
 
11
+ # load_dotenv(find_dotenv())
12
+ # HUGGINGFACEHUB_API_TOKEN = os.getenv("token")
13
+ headers = {"Authorization": f"Bearer {API_TOKEN}"}
14
 
15
  def img2text(path):
16
 
 
107
  st.audio("audio.wav")
108
 
109
  if __name__ == "__main__":
110
+ main()
111
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112