Spaces:
Sleeping
Sleeping
jh000107
commited on
Commit
·
dc4f3f2
1
Parent(s):
4119e90
update
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def get_completion(conversation, model="gpt-4-1106-preview"):
|
|
190 |
|
191 |
# load_dotenv(find_dotenv("_.env"), override=True)
|
192 |
|
193 |
-
openai_api_key = os.
|
194 |
|
195 |
if openai_api_key is None:
|
196 |
raise ValueError("No OpenAI API key found. Please set the OPENAI_API_KEY environment variable.")
|
@@ -322,4 +322,4 @@ with gr.Blocks() as gpt_analysis:
|
|
322 |
|
323 |
btn.click(get_completion, inputs=conversation, outputs=[output_box])
|
324 |
|
325 |
-
gr.TabbedInterface([gpt_analysis], ["GPT Analysis"]).launch(inline=False, debug=True)
|
|
|
190 |
|
191 |
# load_dotenv(find_dotenv("_.env"), override=True)
|
192 |
|
193 |
+
openai_api_key = os.environ['OPENAI_API_KEY']
|
194 |
|
195 |
if openai_api_key is None:
|
196 |
raise ValueError("No OpenAI API key found. Please set the OPENAI_API_KEY environment variable.")
|
|
|
322 |
|
323 |
btn.click(get_completion, inputs=conversation, outputs=[output_box])
|
324 |
|
325 |
+
gr.TabbedInterface([gpt_analysis], ["GPT Analysis"]).launch(inline=False, debug=True, share=True)
|