Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ class RefinementOutput(BaseModel):
|
|
25 |
class PromptRefiner:
|
26 |
def __init__(self, api_token: str):
|
27 |
self.client = InferenceClient(token=api_token, timeout=120)
|
28 |
-
self.meta_prompts = {
|
29 |
"morphosis": original_meta_prompt,
|
30 |
"verse": new_meta_prompt,
|
31 |
"physics": metaprompt1,
|
@@ -35,6 +35,7 @@ class PromptRefiner:
|
|
35 |
"math": math_meta_prompt,
|
36 |
"arpe": autoregressive_metaprompt
|
37 |
}
|
|
|
38 |
self.meta_prompts = meta_prompts
|
39 |
|
40 |
def refine_prompt(self, prompt_input: PromptInput) -> tuple:
|
|
|
25 |
class PromptRefiner:
|
26 |
def __init__(self, api_token: str):
|
27 |
self.client = InferenceClient(token=api_token, timeout=120)
|
28 |
+
'''self.meta_prompts = {
|
29 |
"morphosis": original_meta_prompt,
|
30 |
"verse": new_meta_prompt,
|
31 |
"physics": metaprompt1,
|
|
|
35 |
"math": math_meta_prompt,
|
36 |
"arpe": autoregressive_metaprompt
|
37 |
}
|
38 |
+
'''
|
39 |
self.meta_prompts = meta_prompts
|
40 |
|
41 |
def refine_prompt(self, prompt_input: PromptInput) -> tuple:
|