Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ import os
|
|
7 |
|
8 |
os.environ["OPENAI_API_KEY"] = os.environ.get("open_ai_key") #openai key
|
9 |
|
10 |
-
print(os.environ["OPENAI_API_KEY"])
|
11 |
-
|
12 |
llm = OpenAI(temperature=.7)
|
13 |
|
14 |
"""# Model Implementation"""
|
@@ -365,7 +363,7 @@ import gradio as gr
|
|
365 |
import openai
|
366 |
import re
|
367 |
|
368 |
-
openai.api_key = "
|
369 |
|
370 |
chat_variables = {
|
371 |
"Context": "",
|
|
|
7 |
|
8 |
os.environ["OPENAI_API_KEY"] = os.environ.get("open_ai_key") #openai key
|
9 |
|
|
|
|
|
10 |
llm = OpenAI(temperature=.7)
|
11 |
|
12 |
"""# Model Implementation"""
|
|
|
363 |
import openai
|
364 |
import re
|
365 |
|
366 |
+
openai.api_key = os.environ["OPENAI_API_KEY"]
|
367 |
|
368 |
chat_variables = {
|
369 |
"Context": "",
|