Spaces:
Runtime error
Runtime error
Commit
·
94b4765
1
Parent(s):
b9a1d0e
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import openai
|
| 2 |
import os
|
| 3 |
from dotenv import load_dotenv
|
|
|
|
| 4 |
|
| 5 |
load_dotenv()
|
| 6 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
@@ -67,3 +68,5 @@ response = openai.ChatCompletion.create(
|
|
| 67 |
)
|
| 68 |
|
| 69 |
print(response)
|
|
|
|
|
|
|
|
|
| 1 |
import openai
|
| 2 |
import os
|
| 3 |
from dotenv import load_dotenv
|
| 4 |
+
import streamlit as st
|
| 5 |
|
| 6 |
load_dotenv()
|
| 7 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
print(response)
|
| 71 |
+
|
| 72 |
+
st.header(response)
|