Spaces:
Sleeping
Sleeping
Fix prompt
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ def analyze_with_llama(
|
|
| 122 |
repetition_penalty: float = 1.2,
|
| 123 |
) -> Iterator[str]:
|
| 124 |
"""Analyze transcribed report against ground truth using Llama"""
|
| 125 |
-
task_prompt = f"""You are an expert radiologist. Compare the following transcribed radiology report with the ground truth and provide
|
| 126 |
|
| 127 |
Transcribed Report:
|
| 128 |
{transcribed_text}
|
|
@@ -134,12 +134,12 @@ def analyze_with_llama(
|
|
| 134 |
{ground_truth_impression}
|
| 135 |
|
| 136 |
Please analyze:
|
| 137 |
-
1. Accuracy of findings
|
| 138 |
-
2. Completeness of report
|
| 139 |
-
3. Structure and clarity
|
| 140 |
-
4. Areas for improvement
|
| 141 |
|
| 142 |
-
Provide
|
| 143 |
|
| 144 |
conversation = [
|
| 145 |
{"role": "system", "content": "You are an expert radiologist providing detailed feedback."},
|
|
|
|
| 122 |
repetition_penalty: float = 1.2,
|
| 123 |
) -> Iterator[str]:
|
| 124 |
"""Analyze transcribed report against ground truth using Llama"""
|
| 125 |
+
task_prompt = f"""You are an expert radiologist. Compare the following transcribed radiology report with the ground truth and provide very concise feedback.
|
| 126 |
|
| 127 |
Transcribed Report:
|
| 128 |
{transcribed_text}
|
|
|
|
| 134 |
{ground_truth_impression}
|
| 135 |
|
| 136 |
Please analyze:
|
| 137 |
+
1. Accuracy of findings. Only comment on how the user's transcribed report compares to the ground truth.
|
| 138 |
+
2. Completeness of user report compared to ground truth.
|
| 139 |
+
3. Structure and clarity of user report compared to ground truth.
|
| 140 |
+
4. Areas for improvement for user report compared to ground truth.
|
| 141 |
|
| 142 |
+
Provide concise analysis in a clear, structured format."""
|
| 143 |
|
| 144 |
conversation = [
|
| 145 |
{"role": "system", "content": "You are an expert radiologist providing detailed feedback."},
|