Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
# Q&A Chatbot
|
2 |
from langchain.llms import OpenAI
|
3 |
|
4 |
-
from dotenv import load_dotenv
|
5 |
|
6 |
-
load_dotenv() # take environment variables from .env.
|
7 |
|
8 |
import streamlit as st
|
9 |
import os
|
@@ -12,7 +12,7 @@ import os
|
|
12 |
## Function to load OpenAI model and get respones
|
13 |
|
14 |
def get_openai_response(question):
|
15 |
-
llm=OpenAI(model_name="text-davinci-003",temperature=0.5
|
16 |
response=llm(question)
|
17 |
return response
|
18 |
|
|
|
1 |
# Q&A Chatbot
|
2 |
from langchain.llms import OpenAI
|
3 |
|
4 |
+
#from dotenv import load_dotenv
|
5 |
|
6 |
+
# load_dotenv() # take environment variables from .env.
|
7 |
|
8 |
import streamlit as st
|
9 |
import os
|
|
|
12 |
## Function to load OpenAI model and get respones
|
13 |
|
14 |
def get_openai_response(question):
|
15 |
+
llm=OpenAI(model_name="text-davinci-003",temperature=0.5)
|
16 |
response=llm(question)
|
17 |
return response
|
18 |
|