Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
import openai
|
3 |
import gradio as gr
|
4 |
from gradio import ChatInterface
|
5 |
-
from google.colab import userdata
|
6 |
|
7 |
# 設定 OpenAI API key - 從環境變數獲取
|
8 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
2 |
import openai
|
3 |
import gradio as gr
|
4 |
from gradio import ChatInterface
|
|
|
5 |
|
6 |
# 設定 OpenAI API key - 從環境變數獲取
|
7 |
openai.api_key = os.environ['OPENAI_API_KEY']
|