PraneshJs commited on
Commit
37fc5b7
·
verified ·
1 Parent(s): e0f613a

changed model and added copy button

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -191,7 +191,7 @@ def generate_post(topic, user_prompt):
191
  structured_prompt = build_structured_prompt(user_prompt, repo_data)
192
 
193
  payload = {
194
- "model": "nvidia/nemotron-nano-9b-v2:free",
195
  "messages": [
196
  {"role": "system", "content": "You are an expert social media strategist for projects."},
197
  {"role": "user", "content": structured_prompt}
@@ -234,7 +234,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
234
  )
235
 
236
  generate_btn = gr.Button("✨ Generate LinkedIn Post")
237
- output = gr.Textbox(label="Generated LinkedIn Post", lines=15)
238
 
239
  generate_btn.click(fn=generate_post, inputs=[topic, user_prompt], outputs=output)
240
 
 
191
  structured_prompt = build_structured_prompt(user_prompt, repo_data)
192
 
193
  payload = {
194
+ "model": "minimax/minimax-m2:free",
195
  "messages": [
196
  {"role": "system", "content": "You are an expert social media strategist for projects."},
197
  {"role": "user", "content": structured_prompt}
 
234
  )
235
 
236
  generate_btn = gr.Button("✨ Generate LinkedIn Post")
237
+ output = gr.Textbox(label="Generated LinkedIn Post", show_copy_button=True, lines=20)
238
 
239
  generate_btn.click(fn=generate_post, inputs=[topic, user_prompt], outputs=output)
240