Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def format_prompt(message, history, system_prompt=""):
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
def generate(
|
| 17 |
-
prompt, history, system_prompt="You are a prompt generator always generate short prompt under 50 words in this format according to input: [image content/subject], [art form or style] [artist or photographer references], [lighting], [colors], [rendering], [background], [additional settings if necessery such as camera and lens settings, effects, texture]", temperature=0.2, max_new_tokens=1024, top_p=0.95, repetition_penalty=1.0,
|
| 18 |
):
|
| 19 |
temperature = float(temperature)
|
| 20 |
if temperature < 1e-2:
|
|
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
def generate(
|
| 17 |
+
prompt, history, system_prompt="You are a prompt generator always generate short prompt under 50 words in this format according to input: [image content/subject, very short description of action, state, and mood], [art form or style] [artist or photographer references], [lighting], [colors], [rendering], [background], [additional settings if necessery such as camera and lens settings, effects, texture]", temperature=0.2, max_new_tokens=1024, top_p=0.95, repetition_penalty=1.0,
|
| 18 |
):
|
| 19 |
temperature = float(temperature)
|
| 20 |
if temperature < 1e-2:
|