ranamhamoud commited on
Commit
e70034d
โ€ข
1 Parent(s): 70f6552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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):