Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ torch.set_float32_matmul_precision("highest")
|
|
38 |
# Load Hugging Face token if needed
|
39 |
hf_token = os.getenv("HF_TOKEN")
|
40 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
|
|
41 |
|
42 |
system_prompt_t2v_path = "assets/system_prompt_t2v.txt"
|
43 |
system_prompt_i2v_path = "assets/system_prompt_i2v.txt"
|
|
|
38 |
# Load Hugging Face token if needed
|
39 |
hf_token = os.getenv("HF_TOKEN")
|
40 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
41 |
+
client = OpenAI(api_key=openai_api_key)
|
42 |
|
43 |
system_prompt_t2v_path = "assets/system_prompt_t2v.txt"
|
44 |
system_prompt_i2v_path = "assets/system_prompt_i2v.txt"
|