Spaces:
Sleeping
Sleeping
tensorkelechi
commited on
Commit
•
8ee8e96
1
Parent(s):
ef865ba
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ from dotenv import load_dotenv
|
|
14 |
load_dotenv()
|
15 |
|
16 |
GOOGLE_API_KEY =os.getenv("GOOGLE_API_KEY")
|
|
|
17 |
google_genai.configure(api_key=GOOGLE_API_KEY)
|
18 |
|
19 |
st.set_page_config(
|
@@ -98,10 +99,6 @@ with youtube_url_tab:
|
|
98 |
</div>
|
99 |
''',
|
100 |
unsafe_allow_html=True)
|
101 |
-
|
102 |
-
if st.button("Generate Summary"):
|
103 |
-
summary = generate_ai_summary(ytvideo_transcript)
|
104 |
-
st.write(summary)
|
105 |
|
106 |
except Exception as e:
|
107 |
st.error(e)
|
@@ -127,10 +124,6 @@ with file_select_tab:
|
|
127 |
</div>
|
128 |
''',
|
129 |
unsafe_allow_html=True)
|
130 |
-
|
131 |
-
if st.button("Generate Summary", key="ti2"):
|
132 |
-
summary = generate_ai_summary(video_transcript)
|
133 |
-
st.write(summary)
|
134 |
|
135 |
except Exception as e:
|
136 |
st.error(e)
|
@@ -154,10 +147,6 @@ with audio_file_tab:
|
|
154 |
</div>
|
155 |
''',
|
156 |
unsafe_allow_html=True)
|
157 |
-
|
158 |
-
if st.button("Generate Summary", key="ti1"):
|
159 |
-
summary = generate_ai_summary(audio_transcript)
|
160 |
-
st.write(summary)
|
161 |
|
162 |
except Exception as e:
|
163 |
st.error(e)
|
|
|
14 |
load_dotenv()
|
15 |
|
16 |
GOOGLE_API_KEY =os.getenv("GOOGLE_API_KEY")
|
17 |
+
|
18 |
google_genai.configure(api_key=GOOGLE_API_KEY)
|
19 |
|
20 |
st.set_page_config(
|
|
|
99 |
</div>
|
100 |
''',
|
101 |
unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
102 |
|
103 |
except Exception as e:
|
104 |
st.error(e)
|
|
|
124 |
</div>
|
125 |
''',
|
126 |
unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
127 |
|
128 |
except Exception as e:
|
129 |
st.error(e)
|
|
|
147 |
</div>
|
148 |
''',
|
149 |
unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
150 |
|
151 |
except Exception as e:
|
152 |
st.error(e)
|