Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
•
9d92743
1
Parent(s):
255e891
prompt_types
Browse files- huggingface_inference_node.py +3 -3
- ui_components.py +0 -2
huggingface_inference_node.py
CHANGED
@@ -62,11 +62,11 @@ You are allowed to make up film and branding names, and do them like 80's, 90's
|
|
62 |
"fantasy": fantasy_prompt
|
63 |
}
|
64 |
|
65 |
-
if
|
66 |
-
base_prompt = custom_base_prompt
|
67 |
-
elif prompt_type in prompt_types:
|
68 |
base_prompt = prompt_types[prompt_type]
|
69 |
print(f"Using {prompt_type} prompt")
|
|
|
|
|
70 |
else:
|
71 |
base_prompt = default_happy_prompt
|
72 |
print(f"Warning: Unknown prompt type '{prompt_type}'. Using default happy prompt.")
|
|
|
62 |
"fantasy": fantasy_prompt
|
63 |
}
|
64 |
|
65 |
+
if prompt_type in prompt_types:
|
|
|
|
|
66 |
base_prompt = prompt_types[prompt_type]
|
67 |
print(f"Using {prompt_type} prompt")
|
68 |
+
elif custom_base_prompt.strip():
|
69 |
+
base_prompt = custom_base_prompt
|
70 |
else:
|
71 |
base_prompt = default_happy_prompt
|
72 |
print(f"Warning: Unknown prompt type '{prompt_type}'. Using default happy prompt.")
|
ui_components.py
CHANGED
@@ -202,6 +202,4 @@ def create_interface():
|
|
202 |
]
|
203 |
)
|
204 |
|
205 |
-
prompt_type.change(lambda x: print(f"Prompt type changed to: {x}"), inputs=[prompt_type])
|
206 |
-
|
207 |
return demo
|
|
|
202 |
]
|
203 |
)
|
204 |
|
|
|
|
|
205 |
return demo
|