Spaces:
Sleeping
Sleeping
changes
Browse files
app.py
CHANGED
@@ -713,9 +713,11 @@ async def get_financial_recommendations(customer_id: str):
|
|
713 |
|
714 |
@app.get("/contentcreation/{category}")
|
715 |
async def contentcreation(category:str):
|
|
|
|
|
716 |
completion = client.chat.completions.create(
|
717 |
model="microsoft/phi-4-mini-instruct",
|
718 |
-
messages=[{"role":"user","content":
|
719 |
temperature=0.6,
|
720 |
top_p=0.7,
|
721 |
max_tokens=4096,
|
|
|
713 |
|
714 |
@app.get("/contentcreation/{category}")
|
715 |
async def contentcreation(category:str):
|
716 |
+
inputdata = "Generate articles for "
|
717 |
+
inputdata += category +" in few words. Don't show the thinking part in the output"
|
718 |
completion = client.chat.completions.create(
|
719 |
model="microsoft/phi-4-mini-instruct",
|
720 |
+
messages=[{"role":"user","content":inputdata}],
|
721 |
temperature=0.6,
|
722 |
top_p=0.7,
|
723 |
max_tokens=4096,
|