baconnier commited on
Commit
515ea20
1 Parent(s): 5f815d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -58,7 +58,7 @@ class PromptRefiner:
58
  response = self.client.chat_completion(
59
  model=prompt_refiner_model,
60
  messages=messages,
61
- max_tokens=2000,
62
  temperature=0.8
63
  )
64
 
@@ -144,7 +144,7 @@ class PromptRefiner:
144
  response = self.client.chat_completion(
145
  model=model,
146
  messages=messages,
147
- max_tokens=2000,
148
  temperature=0.8
149
  )
150
 
@@ -281,12 +281,12 @@ class GradioInterface:
281
  self.interface.launch(share=share)
282
 
283
 
284
- explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
285
 
286
 
287
 
288
  if __name__ == '__main__':
289
- meta_info=""
290
  api_token = os.getenv('HF_API_TOKEN')
291
  if not api_token:
292
  raise ValueError("HF_API_TOKEN not found in environment variables")
@@ -302,6 +302,7 @@ if __name__ == '__main__':
302
  advanced_meta_prompt = os.getenv('advanced_meta_prompt')
303
  math_meta_prompt = os.getenv('metamath')
304
  autoregressive_metaprompt = os.getenv('autoregressive_metaprompt')
 
305
 
306
  prompt_refiner = PromptRefiner(api_token)
307
  gradio_interface = GradioInterface(prompt_refiner,custom_css)
 
58
  response = self.client.chat_completion(
59
  model=prompt_refiner_model,
60
  messages=messages,
61
+ max_tokens=3000,
62
  temperature=0.8
63
  )
64
 
 
144
  response = self.client.chat_completion(
145
  model=model,
146
  messages=messages,
147
+ max_tokens=3000,
148
  temperature=0.8
149
  )
150
 
 
281
  self.interface.launch(share=share)
282
 
283
 
284
+ #explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
285
 
286
 
287
 
288
  if __name__ == '__main__':
289
+ ''' meta_info=""
290
  api_token = os.getenv('HF_API_TOKEN')
291
  if not api_token:
292
  raise ValueError("HF_API_TOKEN not found in environment variables")
 
302
  advanced_meta_prompt = os.getenv('advanced_meta_prompt')
303
  math_meta_prompt = os.getenv('metamath')
304
  autoregressive_metaprompt = os.getenv('autoregressive_metaprompt')
305
+ '''
306
 
307
  prompt_refiner = PromptRefiner(api_token)
308
  gradio_interface = GradioInterface(prompt_refiner,custom_css)