Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -133,8 +133,9 @@ class PromptRefiner:
|
|
133 |
messages = [
|
134 |
{
|
135 |
"role": "system",
|
136 |
-
"content": "You are a helpful assistant. Answer in stylized version with latex format or markdown if relevant. Separate your answer into logical sections
|
137 |
},
|
|
|
138 |
{
|
139 |
"role": "user",
|
140 |
"content": prompt
|
@@ -282,7 +283,8 @@ class GradioInterface:
|
|
282 |
|
283 |
|
284 |
#explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
|
285 |
-
'''
|
|
|
286 |
api_token = os.getenv('HF_API_TOKEN')
|
287 |
if not api_token:
|
288 |
raise ValueError("HF_API_TOKEN not found in environment variables")
|
|
|
133 |
messages = [
|
134 |
{
|
135 |
"role": "system",
|
136 |
+
"content": "You are a helpful assistant. Answer in stylized version with latex format or markdown if relevant. Separate your answer into logical sections. Incorporate a variety of lists, headers, and text to make the answer visually appealing"
|
137 |
},
|
138 |
+
#"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"
|
139 |
{
|
140 |
"role": "user",
|
141 |
"content": prompt
|
|
|
283 |
|
284 |
|
285 |
#explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
|
286 |
+
'''
|
287 |
+
meta_info=""
|
288 |
api_token = os.getenv('HF_API_TOKEN')
|
289 |
if not api_token:
|
290 |
raise ValueError("HF_API_TOKEN not found in environment variables")
|