changed model and added copy button
Browse files
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": "
|
| 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=
|
| 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 |
|