Update app.py
Browse files292 unmodified lines29329429529629729829947 unmodified lines347348349350351352353292 unmodified lines# Call modeltry:merged = f"[SYSTEM INSTRUCTION: {sys_inst}]\n\n{prompt}"resp = client.models.generate_content(model=model_name, contents=[uploaded_file, merged])text = getattr(resp, "text", None)if not text:47 unmodified linesfile_out = gr.File(label="MP3 для сцягвання")status_fetch = gr.Markdown()with gr.Tab("AI Analysis (Gemini)"):", value=os.environ.get("GOOGLE_API_KEY", ""), type="password")with gr.Row():tpl_dd = gr.Dropdown(choices=TPL_OPTIONS, value="simple", label="Шаблон")lang_dd = gr.Dropdown(choices=LANG_OPTIONS, value="default", label="Мова")292 unmodified lines29329429529629729829930030147 unmodified lines349350351352353354355292 unmodified lines# Call modeltry:merged = f"[SYSTEM INSTRUCTION: {sys_inst}]{prompt}"resp = client.models.generate_content(model=model_name, contents=[uploaded_file, merged])text = getattr(resp, "text", None)if not text:47 unmodified linesfile_out = gr.File(label="MP3 для сцягвання")status_fetch = gr.Markdown()with gr.Tab("AI Analysis (Gemini)"):with gr.Row():tpl_dd = gr.Dropdown(choices=TPL_OPTIONS, value="simple", label="Шаблон")lang_dd = gr.Dropdown(choices=LANG_OPTIONS, value="default", label="Мова")
app.py+4-2