yashxx07 commited on
Commit
494edda
·
verified ·
1 Parent(s): bad2aa2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -45,7 +45,7 @@ async def root(item: Item):
45
  return {'summary': ""}
46
 
47
  response = requests.post('https://fumes-api.onrender.com/llama3',
48
- json={'prompt': "{ 'User': 'Summarize the following news article: '" + article + "}",
49
  "temperature":0.6,
50
  "topP":0.9,
51
  "maxTokens": 200}, stream=True)
 
45
  return {'summary': ""}
46
 
47
  response = requests.post('https://fumes-api.onrender.com/llama3',
48
+ json={'prompt': [{ "role":"user", "content" : 'Summarize the following news article: ' + article }],
49
  "temperature":0.6,
50
  "topP":0.9,
51
  "maxTokens": 200}, stream=True)