Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ class PromptRefiner:
|
|
85 |
output[key] = "" # Set empty string if content not found
|
86 |
return RefinementOutput(**output, raw_content=response_content)
|
87 |
|
88 |
-
def apply_prompt(self, prompt: str) -> str:
|
89 |
try:
|
90 |
messages = [
|
91 |
{"role": "system", "content": "You are a helpful assistant. Answer in stylized version with latex format or markdown if relevant. Separate your answer into logical sections using level 2 headers (##) for sections and bolding (**) for subsections.Incorporate a variety of lists, headers, and text to make the answer visually appealing"},
|
|
|
85 |
output[key] = "" # Set empty string if content not found
|
86 |
return RefinementOutput(**output, raw_content=response_content)
|
87 |
|
88 |
+
def apply_prompt(self, prompt: str, model: str) -> str:
|
89 |
try:
|
90 |
messages = [
|
91 |
{"role": "system", "content": "You are a helpful assistant. Answer in stylized version with latex format or markdown if relevant. Separate your answer into logical sections using level 2 headers (##) for sections and bolding (**) for subsections.Incorporate a variety of lists, headers, and text to make the answer visually appealing"},
|