Spaces:
Runtime error
Runtime error
shreyasharma22
commited on
Commit
•
7716e04
1
Parent(s):
f3c237c
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
# Q&A Chatbot
|
2 |
|
3 |
from langchain.llms import OpenAI
|
4 |
-
from dotenv import load_dotenv
|
5 |
-
load_dotenv() #take environment variables from .env
|
6 |
import streamlit as st
|
7 |
import os
|
8 |
## Function to load OpenAI model and get response
|
9 |
|
10 |
def get_openai_response(question):
|
11 |
-
llm= OpenAI(
|
12 |
response = llm(question)
|
13 |
return response
|
14 |
|
|
|
1 |
# Q&A Chatbot
|
2 |
|
3 |
from langchain.llms import OpenAI
|
4 |
+
#from dotenv import load_dotenv
|
5 |
+
#load_dotenv() #take environment variables from .env
|
6 |
import streamlit as st
|
7 |
import os
|
8 |
## Function to load OpenAI model and get response
|
9 |
|
10 |
def get_openai_response(question):
|
11 |
+
llm= OpenAI(model_name ="gpt-3.5-turbo-instruct", temperature = 0.5)
|
12 |
response = llm(question)
|
13 |
return response
|
14 |
|