Spaces:
Runtime error
Runtime error
Commit
·
5875333
1
Parent(s):
fb6b6cf
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def generate_text(prompt):
|
| 6 |
# Add custom text to the prompt
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
| 3 |
+
import sys
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
| 7 |
|
| 8 |
def generate_text(prompt):
|
| 9 |
# Add custom text to the prompt
|