Spaces:
Runtime error
Runtime error
NicolasGaudemet
commited on
Commit
•
2ca7ea7
1
Parent(s):
a967cc3
Update summarizer_app.py
Browse files- summarizer_app.py +1 -1
summarizer_app.py
CHANGED
@@ -9,7 +9,7 @@ from langchain.chains.summarize import load_summarize_chain
|
|
9 |
import gradio as gr
|
10 |
|
11 |
#définition du LLM
|
12 |
-
llm = OpenAI(model = "text-davinci-003", temperature=0, openai_api_key = os.environ['OpenaiKey'])
|
13 |
|
14 |
#chargement des paramètres
|
15 |
with open("parametres.json", "r") as p:
|
|
|
9 |
import gradio as gr
|
10 |
|
11 |
#définition du LLM
|
12 |
+
llm = OpenAI(model = "text-davinci-003", max_token = 1000, temperature=0, openai_api_key = os.environ['OpenaiKey'])
|
13 |
|
14 |
#chargement des paramètres
|
15 |
with open("parametres.json", "r") as p:
|