Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ import os
|
|
13 |
#os.environ["OPENAI_API_KEY"] = "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"
|
14 |
|
15 |
llm = OpenAI(model_name="text-davinci-003",openai_api_key=openai_api_key)
|
16 |
-
self.llm = OpenAI(temperature=0, openai_api_key="paste your api key here")
|
17 |
|
18 |
template = 'question:{question}'
|
19 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
|
|
13 |
#os.environ["OPENAI_API_KEY"] = "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"
|
14 |
|
15 |
llm = OpenAI(model_name="text-davinci-003",openai_api_key=openai_api_key)
|
|
|
16 |
|
17 |
template = 'question:{question}'
|
18 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|