salomonsky commited on
Commit
fffcbc3
·
verified ·
1 Parent(s): 931085f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -46,10 +46,9 @@ def enhance_prompt(text, client=client):
46
  try:
47
  enhanced = client.text_generation(
48
  "Generate a photorealistic, detailed txt2img prompt: " + text,
49
- model="mistralai/Mixtral-8x7B-v0.1",
50
- max_length=200
51
- )
52
  return enhanced[:200]
 
53
  except Exception as e:
54
  st.warning(f"Prompt enhancement error: {e}")
55
  return text[:200]
 
46
  try:
47
  enhanced = client.text_generation(
48
  "Generate a photorealistic, detailed txt2img prompt: " + text,
49
+ model="mistralai/Mixtral-8x7B-v0.1",)
 
 
50
  return enhanced[:200]
51
+
52
  except Exception as e:
53
  st.warning(f"Prompt enhancement error: {e}")
54
  return text[:200]