Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -183,9 +183,9 @@ class GeminiPromptGenerator:
|
|
183 |
DO NOT include words like 'prompt' or 'description' in the response."""
|
184 |
|
185 |
try:
|
186 |
-
response = self.
|
187 |
-
if response
|
188 |
-
return response.
|
189 |
else:
|
190 |
return "Sorry, I couldn't generate a creative prompt. Please try again."
|
191 |
except Exception as e:
|
|
|
183 |
DO NOT include words like 'prompt' or 'description' in the response."""
|
184 |
|
185 |
try:
|
186 |
+
response = self.generate_content(system_prompt)
|
187 |
+
if response:
|
188 |
+
return response.strip()
|
189 |
else:
|
190 |
return "Sorry, I couldn't generate a creative prompt. Please try again."
|
191 |
except Exception as e:
|