Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ async def ask(ctx, *, question: str):
|
|
42 |
Command to ask a question to the Hugging Face model with an instructive prompt.
|
43 |
"""
|
44 |
# Create a structured prompt
|
45 |
-
prompt = f"Do not put input in your response. Do not be annoying.
|
46 |
await ctx.send(f"Question: {question}")
|
47 |
response = query_huggingface(prompt)
|
48 |
if 'generated_text' in response:
|
|
|
42 |
Command to ask a question to the Hugging Face model with an instructive prompt.
|
43 |
"""
|
44 |
# Create a structured prompt
|
45 |
+
prompt = f"Keep Responses to a 'PG' Rating OR lower. Do not put input in your response. Do not be annoying. Please provide a detailed response to the following: {question}"
|
46 |
await ctx.send(f"Question: {question}")
|
47 |
response = query_huggingface(prompt)
|
48 |
if 'generated_text' in response:
|