Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def load_config():
|
|
| 22 |
else:
|
| 23 |
# Default values if the file doesn't exist
|
| 24 |
return {
|
| 25 |
-
"vision_model": "llama-
|
| 26 |
"compliment_prompt_de": """Betrachte die Person im Bild und mache einige ehrliche und authentische Komplimente.
|
| 27 |
Konzentriere dich dabei auf positive Merkmale wie ihre Ausstrahlung, ihr Lächeln, ihre Augen, ihre Kleidung oder andere hervorstechende Eigenschaften.
|
| 28 |
Verwende warme, wertschätzende Sprache.
|
|
@@ -132,7 +132,7 @@ with gr.Blocks(css="""
|
|
| 132 |
config = yaml.safe_load(f)
|
| 133 |
save_config(config)
|
| 134 |
app.config = config
|
| 135 |
-
app.vision_model = config.get("vision_model", "llama-
|
| 136 |
app.max_tokens = config.get("max_tokens", 300)
|
| 137 |
app.temperature = config.get("temperature", 0.5)
|
| 138 |
app.compliment_prompt_de = config.get("compliment_prompt_de", "Standard-Prompt auf Deutsch")
|
|
|
|
| 22 |
else:
|
| 23 |
# Default values if the file doesn't exist
|
| 24 |
return {
|
| 25 |
+
"vision_model": "meta-llama/llama-4-scout-17b-16e-instruct",
|
| 26 |
"compliment_prompt_de": """Betrachte die Person im Bild und mache einige ehrliche und authentische Komplimente.
|
| 27 |
Konzentriere dich dabei auf positive Merkmale wie ihre Ausstrahlung, ihr Lächeln, ihre Augen, ihre Kleidung oder andere hervorstechende Eigenschaften.
|
| 28 |
Verwende warme, wertschätzende Sprache.
|
|
|
|
| 132 |
config = yaml.safe_load(f)
|
| 133 |
save_config(config)
|
| 134 |
app.config = config
|
| 135 |
+
app.vision_model = config.get("vision_model", "meta-llama/llama-4-scout-17b-16e-instruct")
|
| 136 |
app.max_tokens = config.get("max_tokens", 300)
|
| 137 |
app.temperature = config.get("temperature", 0.5)
|
| 138 |
app.compliment_prompt_de = config.get("compliment_prompt_de", "Standard-Prompt auf Deutsch")
|