Spaces:
Runtime error
Runtime error
v0.3
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import time
|
|
7 |
import random
|
8 |
from PIL import Image
|
9 |
from typing import Union
|
|
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
print(f"Using {device}" if device != "cpu" else "Using CPU")
|
@@ -65,10 +66,6 @@ def dual_images(img1: Image):
|
|
65 |
|
66 |
import os
|
67 |
|
68 |
-
with open("together_key.txt", "r") as f:
|
69 |
-
os.environ["TOGETHER_KEY"] = f.read().strip()
|
70 |
-
print("Set together key")
|
71 |
-
|
72 |
def merge_descriptions_to_prompt(mi, d1, d2):
|
73 |
from together import Together
|
74 |
tog = Together(api_key=os.getenv("TOGETHER_KEY"))
|
|
|
7 |
import random
|
8 |
from PIL import Image
|
9 |
from typing import Union
|
10 |
+
import os
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
print(f"Using {device}" if device != "cpu" else "Using CPU")
|
|
|
66 |
|
67 |
import os
|
68 |
|
|
|
|
|
|
|
|
|
69 |
def merge_descriptions_to_prompt(mi, d1, d2):
|
70 |
from together import Together
|
71 |
tog = Together(api_key=os.getenv("TOGETHER_KEY"))
|