getting back to template 1
Browse files
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 / "
|
| 29 |
if not template_path.exists():
|
| 30 |
-
raise gr.Error("Template file (
|
| 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 (`
|
| 50 |
|
| 51 |
**Input Transcript:**
|
| 52 |
\"\"\"
|
|
|
|
| 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 |
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 |
\"\"\"
|