Spaces:
Running
on
Zero
Running
on
Zero
Staticaliza
commited on
Commit
•
3538bec
1
Parent(s):
8a86647
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ footer {
|
|
29 |
# Functions
|
30 |
@spaces.GPU(duration=60)
|
31 |
def generate(image, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7, top_p=0.8, top_k=100, repetition_penalty=1.05, max_tokens=512):
|
32 |
-
|
33 |
|
34 |
print(image)
|
35 |
# image_rgb = Image.open(image).convert("RGB")
|
|
|
29 |
# Functions
|
30 |
@spaces.GPU(duration=60)
|
31 |
def generate(image, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7, top_p=0.8, top_k=100, repetition_penalty=1.05, max_tokens=512):
|
32 |
+
repo.to(DEVICE)
|
33 |
|
34 |
print(image)
|
35 |
# image_rgb = Image.open(image).convert("RGB")
|