Update app.py
Browse files
app.py
CHANGED
@@ -111,9 +111,7 @@ class DetailedExplainer:
|
|
111 |
|
112 |
def explain_concept(self, concept: str, context: str, min_accuracy: float = 0.50) -> str:
|
113 |
prompt = (
|
114 |
-
f"The following sentence from a PDF is given"
|
115 |
-
\"{context}\"\n\n"
|
116 |
-
f"Now explain the concept '{concept}' mentioned above with at least {int(min_accuracy * 100)}% accuracy."
|
117 |
)
|
118 |
result = self.explainer(
|
119 |
prompt,
|
|
|
111 |
|
112 |
def explain_concept(self, concept: str, context: str, min_accuracy: float = 0.50) -> str:
|
113 |
prompt = (
|
114 |
+
f"The following sentence from a PDF is given \n{context}\n\n\nNow explain the concept '{concept}' mentioned above with at least {int(min_accuracy * 100)}% accuracy."
|
|
|
|
|
115 |
)
|
116 |
result = self.explainer(
|
117 |
prompt,
|