Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ llm = initialize_llm(llm_name)
|
|
54 |
|
55 |
# format prompt as per the ChatML template. The model was fine-tuned with this chat template
|
56 |
def format_prompt(input_text, history):
|
57 |
-
system_prompt = """You are
|
58 |
but you are also creative for imaginative/fictional tasks."""
|
59 |
prompt = ""
|
60 |
if history:
|
@@ -105,6 +105,6 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="sky")) as demo:
|
|
105 |
# description="This AI agent is using the MuntasirHossain/Meta-Llama-3-8B-OpenOrca-GGUF model for text-generation.",
|
106 |
# additional_inputs=additional_inputs,
|
107 |
examples=[["What is code vulnerability and how can Generative AI help to address code vulnerability?"],
|
108 |
-
["Imagine there is a planet named 'Orca'. Write a short fictional story about this planet
|
109 |
)
|
110 |
demo.queue().launch()
|
|
|
54 |
|
55 |
# format prompt as per the ChatML template. The model was fine-tuned with this chat template
|
56 |
def format_prompt(input_text, history):
|
57 |
+
system_prompt = """You are an expert and helpful AI assistant. You are truthful and constructive in your response for real-world matters
|
58 |
but you are also creative for imaginative/fictional tasks."""
|
59 |
prompt = ""
|
60 |
if history:
|
|
|
105 |
# description="This AI agent is using the MuntasirHossain/Meta-Llama-3-8B-OpenOrca-GGUF model for text-generation.",
|
106 |
# additional_inputs=additional_inputs,
|
107 |
examples=[["What is code vulnerability and how can Generative AI help to address code vulnerability?"],
|
108 |
+
["Imagine there is a planet named 'Orca'. Write a short fictional story about this planet. The plot of the story is about the planet's mysterious human-like intelligence and their survival in extreme conditions."]]
|
109 |
)
|
110 |
demo.queue().launch()
|