Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
helper.py
CHANGED
|
@@ -84,7 +84,7 @@ class ChatGPTClient:
|
|
| 84 |
self.body = body
|
| 85 |
self.history: List[Dict[str, str]] = [
|
| 86 |
{"role": "system", "content": self.protocol},
|
| 87 |
-
{"role": "user", "content": f"The content provided: {self.body}"}
|
| 88 |
]
|
| 89 |
|
| 90 |
def append_message(self, role: str, content: str) -> None:
|
|
|
|
| 84 |
self.body = body
|
| 85 |
self.history: List[Dict[str, str]] = [
|
| 86 |
{"role": "system", "content": self.protocol},
|
| 87 |
+
{"role": "user", "content": f"""The content provided is from Optical Characters Recognition. Here it is: \n{self.body}"""}
|
| 88 |
]
|
| 89 |
|
| 90 |
def append_message(self, role: str, content: str) -> None:
|