Skip to content

Commit 3bf216c

Browse files
committed
collect user input
1 parent 7038c82 commit 3bf216c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
DATABASE=tasks
22
DBPASS=123456
3-
OPENAI_API_KEY=openai-key
3+
OPENAI_API_KEY=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

langchain_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Simple LLM call Using LangChain
1010
llm = OpenAI(model_name="text-davinci-003", openai_api_key=API_KEY)
11-
question = "Which language is used to create chatgpt ?"
11+
question = input("Enter question: ")
1212
print(question, llm(question))
1313

1414
# Creating a prompt template and running the LLM chain

0 commit comments

Comments
 (0)