c1tr0n75 commited on
Commit
f669f4b
·
verified ·
1 Parent(s): 7dc95b2

adding new gemini template

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,9 +25,9 @@ def generate_visual_minutes(api_key, transcript_file):
25
  raise gr.Error("Please upload a transcript file.")
26
 
27
  # Load the fixed template from the repository
28
- template_path = Path(__file__).parent / "template.jpg"
29
  if not template_path.exists():
30
- raise gr.Error("Template file (template.jpg) not found in the repository.")
31
 
32
  try:
33
  template_image = Image.open(template_path)
@@ -46,7 +46,7 @@ def generate_visual_minutes(api_key, transcript_file):
46
  You are an expert visual facilitator creating graphic recording minutes for a meeting.
47
 
48
  **Task:**
49
- Generate a final image that looks exactly like the provided layout image (`template.jpg`), but with all the boxes and sections filled in with summarized information extracted from the provided `transcript_content`.
50
 
51
  **Input Transcript:**
52
  \"\"\"
@@ -146,7 +146,7 @@ with gr.Blocks(title="Visual Minutes Generator") as demo:
146
  gr.Markdown("""
147
  Generate visual minutes from a meeting transcript using Google's Gemini model.
148
 
149
- **The template (template.jpg) is automatically loaded from the repository.**
150
  """)
151
 
152
  with gr.Row():
 
25
  raise gr.Error("Please upload a transcript file.")
26
 
27
  # Load the fixed template from the repository
28
+ template_path = Path(__file__).parent / "gemini_template.jpg"
29
  if not template_path.exists():
30
+ raise gr.Error("Template file (gemini_template.jpg) not found in the repository.")
31
 
32
  try:
33
  template_image = Image.open(template_path)
 
46
  You are an expert visual facilitator creating graphic recording minutes for a meeting.
47
 
48
  **Task:**
49
+ Generate a final image that looks exactly like the provided layout image (`gemini_template.jpg`), but with all the boxes and sections filled in with summarized information extracted from the provided `transcript_content`.
50
 
51
  **Input Transcript:**
52
  \"\"\"
 
146
  gr.Markdown("""
147
  Generate visual minutes from a meeting transcript using Google's Gemini model.
148
 
149
+ **The template (gemini_template.jpg) is automatically loaded from the repository.**
150
  """)
151
 
152
  with gr.Row():