Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from typing import Optional, Literal
|
|
8 |
|
9 |
from custom_css import custom_css
|
10 |
|
|
|
11 |
class PromptInput(BaseModel):
|
12 |
text: str = Field(..., description="The initial prompt text")
|
13 |
meta_prompt_choice: Literal["superstar","star","done","physics","morphosis", "verse", "phor","bolism","math", "math_meta"] = Field(..., description="Choice of meta prompt strategy")
|
@@ -215,7 +216,7 @@ class PromptRefiner:
|
|
215 |
return f"Error: {str(e)}"
|
216 |
|
217 |
class GradioInterface:
|
218 |
-
def __init__(self, prompt_refiner: PromptRefiner):
|
219 |
self.prompt_refiner = prompt_refiner
|
220 |
custom_css = custom_css
|
221 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
|
|
|
8 |
|
9 |
from custom_css import custom_css
|
10 |
|
11 |
+
|
12 |
class PromptInput(BaseModel):
|
13 |
text: str = Field(..., description="The initial prompt text")
|
14 |
meta_prompt_choice: Literal["superstar","star","done","physics","morphosis", "verse", "phor","bolism","math", "math_meta"] = Field(..., description="Choice of meta prompt strategy")
|
|
|
216 |
return f"Error: {str(e)}"
|
217 |
|
218 |
class GradioInterface:
|
219 |
+
def __init__(self, prompt_refiner: PromptRefiner,custom_css):
|
220 |
self.prompt_refiner = prompt_refiner
|
221 |
custom_css = custom_css
|
222 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as self.interface:
|