Spaces:
Running
Running
Update main.py
Browse files
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':
|
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)
|