baconnier commited on
Commit
5f815d6
1 Parent(s): 569890c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -33
app.py CHANGED
@@ -8,6 +8,7 @@ from typing import Optional, Literal
8
  from huggingface_hub.errors import HfHubHTTPError
9
 
10
  from custom_css import custom_css
 
11
 
12
 
13
  class PromptInput(BaseModel):
@@ -280,39 +281,6 @@ class GradioInterface:
280
  self.interface.launch(share=share)
281
 
282
 
283
- metaprompt_explanations = {
284
- "star": "Use ECHO when you need a comprehensive, multi-stage approach for complex prompts. It's ideal for tasks requiring in-depth analysis, exploration of multiple alternatives, and synthesis of ideas. Choose this over others when you have time for a thorough refinement process and need to consider various aspects of the prompt.",
285
- "done": "Opt for this when you want a structured approach with emphasis on role-playing and advanced techniques. It's particularly useful for tasks that benefit from diverse perspectives and complex reasoning. Prefer this over 'physics' when you need a more detailed, step-by-step refinement process.",
286
- "physics": "Select this when you need a balance between structure and advanced techniques, with a focus on role-playing. It's similar to 'done' but may be more suitable for scientific or technical prompts. Choose this over 'done' for a slightly less complex approach.",
287
- "morphosis": "Use this simplified approach for straightforward prompts or when time is limited. It focuses on essential improvements without complex techniques. Prefer this over other methods when you need quick, clear refinements without extensive analysis.",
288
- "verse": "Choose this method when you need to analyze and improve a prompt's strengths and weaknesses, with a focus on information flow. It's particularly useful for enhancing the logical structure of prompts. Use this over 'morphosis' when you need more depth but less complexity than 'star'.",
289
- "phor": "Employ this advanced approach when you need to combine multiple prompt engineering techniques. It's ideal for complex tasks requiring both clarity and sophisticated prompting methods. Select this over 'star' when you want a more flexible, technique-focused approach.",
290
- "bolism": "Utilize this method when working with autoregressive language models and when the task requires careful reasoning before conclusions. It's best for prompts that need detailed output formatting. Choose this over others when the prompt's structure and reasoning order are crucial."
291
- }
292
-
293
- models = [
294
- # Meta-Llama models (all support system)
295
- "meta-llama/Meta-Llama-3-70B-Instruct",
296
- "meta-llama/Meta-Llama-3-8B-Instruct",
297
- "meta-llama/Llama-3.1-70B-Instruct",
298
- "meta-llama/Llama-3.1-8B-Instruct",
299
- "meta-llama/Llama-3.2-3B-Instruct",
300
- "meta-llama/Llama-3.2-1B-Instruct",
301
- "meta-llama/Llama-2-13b-chat-hf",
302
- "meta-llama/Llama-2-7b-chat-hf",
303
-
304
- # HuggingFaceH4 models (support system)
305
- "HuggingFaceH4/zephyr-7b-beta",
306
- "HuggingFaceH4/zephyr-7b-alpha",
307
-
308
- # Qwen models (support system)
309
- "Qwen/Qwen2.5-72B-Instruct",
310
- "Qwen/Qwen2.5-1.5B",
311
-
312
- # Google models (supports system)
313
- "google/gemma-1.1-2b-it"
314
- ]
315
-
316
  explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
317
 
318
 
 
8
  from huggingface_hub.errors import HfHubHTTPError
9
 
10
  from custom_css import custom_css
11
+ from variables import *
12
 
13
 
14
  class PromptInput(BaseModel):
 
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