Spaces:
Runtime error
Runtime error
Commit
·
0c68525
1
Parent(s):
3055acb
Updated app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
from langchain.llms import OpenAI
|
| 2 |
-
from dotenv import load_dotenv
|
| 3 |
import streamlit as st
|
| 4 |
-
from properties import *
|
| 5 |
import os
|
| 6 |
-
load_dotenv() # get the environment variable from .env
|
| 7 |
|
| 8 |
def get_openai_response(question):
|
| 9 |
-
llm = OpenAI(
|
| 10 |
response = llm(question)
|
| 11 |
return response
|
| 12 |
#streamlit app
|
|
|
|
| 1 |
from langchain.llms import OpenAI
|
| 2 |
+
# from dotenv import load_dotenv
|
| 3 |
import streamlit as st
|
| 4 |
+
# from properties import *
|
| 5 |
import os
|
| 6 |
+
# load_dotenv() # get the environment variable from .env
|
| 7 |
|
| 8 |
def get_openai_response(question):
|
| 9 |
+
llm = OpenAI(model_name = "text-davinci-003", temperature = 0.5)
|
| 10 |
response = llm(question)
|
| 11 |
return response
|
| 12 |
#streamlit app
|