Spaces:
Runtime error
Runtime error
Anurag Bhardwaj
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import json
|
| 3 |
import copy
|
|
@@ -12,6 +15,9 @@ from PIL import Image
|
|
| 12 |
import gradio as gr
|
| 13 |
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
from diffusers import (
|
| 16 |
DiffusionPipeline,
|
| 17 |
AutoencoderTiny,
|
|
@@ -39,6 +45,7 @@ import spaces
|
|
| 39 |
# hf_token = 'hf-token-authentication'
|
| 40 |
# login(hf_token)
|
| 41 |
|
|
|
|
| 42 |
def calculate_shift(
|
| 43 |
image_seq_len,
|
| 44 |
base_seq_len: int = 256,
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
|
| 4 |
import os
|
| 5 |
import json
|
| 6 |
import copy
|
|
|
|
| 15 |
import gradio as gr
|
| 16 |
|
| 17 |
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
from diffusers import (
|
| 22 |
DiffusionPipeline,
|
| 23 |
AutoencoderTiny,
|
|
|
|
| 45 |
# hf_token = 'hf-token-authentication'
|
| 46 |
# login(hf_token)
|
| 47 |
|
| 48 |
+
|
| 49 |
def calculate_shift(
|
| 50 |
image_seq_len,
|
| 51 |
base_seq_len: int = 256,
|