asalhi85 commited on
Commit
be07a11
1 Parent(s): 68c58d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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("https://www.youtube.com/watch?v=5Abk7EU5EJI")
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(