Spaces:
Paused
Paused
ranamhamoud
commited on
Commit
โข
e70034d
1
Parent(s):
70f6552
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,11 @@ import gradio as gr
|
|
8 |
import spaces
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, TextIteratorStreamer
|
10 |
from peft import PeftModel
|
|
|
11 |
from openai import OpenAI
|
12 |
|
13 |
|
|
|
14 |
openai.api_key = os.environ.get("OPENAI_KEY")
|
15 |
|
16 |
def generate_image(text):
|
|
|
8 |
import spaces
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, TextIteratorStreamer
|
10 |
from peft import PeftModel
|
11 |
+
import openai
|
12 |
from openai import OpenAI
|
13 |
|
14 |
|
15 |
+
|
16 |
openai.api_key = os.environ.get("OPENAI_KEY")
|
17 |
|
18 |
def generate_image(text):
|