shikharyashmaurya commited on
Commit
f655170
1 Parent(s): ed4a961

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,7 +27,8 @@ def generate_gemini_content(prompt,audio_file):
27
  tmp_file.write(audio_file.getvalue())
28
  tmp_file.close() # close the file
29
 
30
- model = genai.GenerativeModel("models/gemini-1.5-pro-latest")
 
31
  your_file = genai.upload_file(tmp_file.name)
32
  response = model.generate_content([prompt, your_file])
33
  return response.text
 
27
  tmp_file.write(audio_file.getvalue())
28
  tmp_file.close() # close the file
29
 
30
+ # model = genai.GenerativeModel("models/gemini-1.5-pro-latest")
31
+ model = genai.GenerativeModel("gemini-1.5-pro-latest")
32
  your_file = genai.upload_file(tmp_file.name)
33
  response = model.generate_content([prompt, your_file])
34
  return response.text