Update app.py
Browse files
app.py
CHANGED
@@ -89,11 +89,9 @@ def bot(
|
|
89 |
#text_prompt = chatbot[-1][0]
|
90 |
txt_in = chatbot[-1][0]
|
91 |
if "youtube" in txt_in:
|
92 |
-
text_prompt = extract_text_from(
|
93 |
else:
|
94 |
-
text_prompt = txt_in
|
95 |
-
|
96 |
-
|
97 |
|
98 |
genai.configure(api_key=google_key)
|
99 |
generation_config = genai.types.GenerationConfig(
|
|
|
89 |
#text_prompt = chatbot[-1][0]
|
90 |
txt_in = chatbot[-1][0]
|
91 |
if "youtube" in txt_in:
|
92 |
+
text_prompt = extract_text_from(txt_in)
|
93 |
else:
|
94 |
+
text_prompt = txt_in
|
|
|
|
|
95 |
|
96 |
genai.configure(api_key=google_key)
|
97 |
generation_config = genai.types.GenerationConfig(
|