viveksil commited on
Commit
c2c28b1
·
verified ·
1 Parent(s): c924029

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def pick_meme_and_params(prompt: str) -> dict:
31
  meme_names = list(MEME_DATABASE.keys())
32
  meme_list_string = "\n".join(f"- {name}" for name in meme_names)
33
 
34
- system_message = "You are a JSON-output assistant that selects the best meme template and generates top and bottom captions."
35
  user_message = (
36
  f"Here is the list of available meme templates:\n{meme_list_string}\n\n"
37
  f"Based on this list, choose the most suitable meme template for the prompt: '{prompt}'.\n\n"
@@ -127,8 +127,15 @@ def generate_meme(prompt):
127
  return f"Error generating meme: {e}"
128
 
129
  # Gradio + MCP interface
 
130
  with gr.Blocks() as demo:
131
  gr.Markdown("# 🖼️ Meme Context Protocol Tool")
 
 
 
 
 
 
132
  prompt_in = gr.Textbox(label="Enter your meme idea")
133
  out_img = gr.Image(label="Generated Meme")
134
  btn = gr.Button("Generate Meme")
 
31
  meme_names = list(MEME_DATABASE.keys())
32
  meme_list_string = "\n".join(f"- {name}" for name in meme_names)
33
 
34
+ system_message = "You are a JSON-output assistant that selects the best meme template and generates top and bottom captions. Make them funny and creative"
35
  user_message = (
36
  f"Here is the list of available meme templates:\n{meme_list_string}\n\n"
37
  f"Based on this list, choose the most suitable meme template for the prompt: '{prompt}'.\n\n"
 
127
  return f"Error generating meme: {e}"
128
 
129
  # Gradio + MCP interface
130
+
131
  with gr.Blocks() as demo:
132
  gr.Markdown("# 🖼️ Meme Context Protocol Tool")
133
+ gr.Markdown("""
134
+ **Your personal meme genie!**
135
+ Drop a prompt, and this meme conjurer uses magic to pick the perfect template and cook up hilarious captions faster than you can say "dank."
136
+ It’s the ultimate meme-making mischief machine – pun-powered, LLM-fueled, and chaos-approved.
137
+ Memes so fresh, they might just slap themselves.
138
+ """)
139
  prompt_in = gr.Textbox(label="Enter your meme idea")
140
  out_img = gr.Image(label="Generated Meme")
141
  btn = gr.Button("Generate Meme")