baconnier commited on
Commit
45b4425
1 Parent(s): c52beac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,7 +42,7 @@ class PromptRefiner:
42
  {"role": "user", "content": selected_meta_prompt.replace("[Insert initial prompt here]", prompt_input.text)}
43
  ]
44
  response = self.client.chat_completion(
45
- model="meta-llama/Meta-Llama-3-70B-Instruct",
46
  messages=messages,
47
  max_tokens=2000,
48
  temperature=0.8
@@ -136,8 +136,7 @@ class GradioInterface:
136
  "NousResearch/Hermes-3-Llama-3.1-8B",
137
  "HuggingFaceH4/zephyr-7b-alpha",
138
  "meta-llama/Llama-2-7b-chat-hf",
139
- "microsoft/Phi-3.5-mini-instruct",
140
- "Qwen/Qwen2.5-1.5B-Instruct"
141
  ],
142
  value="meta-llama/Meta-Llama-3-70B-Instruct",
143
  label="Choose the Model to apply to the prompts (the one you will used)"
@@ -200,6 +199,7 @@ if __name__ == '__main__':
200
  raise ValueError("HF_API_TOKEN not found in environment variables")
201
 
202
  metadone = os.getenv('metadone')
 
203
  echo_prompt_refiner = os.getenv('echo_prompt_refiner')
204
  metaprompt1 = os.getenv('metaprompt1')
205
  loic_metaprompt = os.getenv('loic_metaprompt')
 
42
  {"role": "user", "content": selected_meta_prompt.replace("[Insert initial prompt here]", prompt_input.text)}
43
  ]
44
  response = self.client.chat_completion(
45
+ model=prompt_refiner_model,
46
  messages=messages,
47
  max_tokens=2000,
48
  temperature=0.8
 
136
  "NousResearch/Hermes-3-Llama-3.1-8B",
137
  "HuggingFaceH4/zephyr-7b-alpha",
138
  "meta-llama/Llama-2-7b-chat-hf",
139
+ "microsoft/Phi-3.5-mini-instruct"
 
140
  ],
141
  value="meta-llama/Meta-Llama-3-70B-Instruct",
142
  label="Choose the Model to apply to the prompts (the one you will used)"
 
199
  raise ValueError("HF_API_TOKEN not found in environment variables")
200
 
201
  metadone = os.getenv('metadone')
202
+ prompt_refiner_model = os.getenv('prompt_refiner_model')
203
  echo_prompt_refiner = os.getenv('echo_prompt_refiner')
204
  metaprompt1 = os.getenv('metaprompt1')
205
  loic_metaprompt = os.getenv('loic_metaprompt')