baconnier commited on
Commit
8910331
1 Parent(s): 4228b37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 using level 2 headers (##) for sections and bolding (**) for subsections. Incorporate a variety of lists, headers, and text to make the answer visually appealing"
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
- ''' meta_info=""
 
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")