Spaces:
Runtime error
Runtime error
Anurag Bhardwaj
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
|
| 3 |
-
|
| 4 |
import os
|
| 5 |
import json
|
| 6 |
import copy
|
|
@@ -15,9 +14,6 @@ from PIL import Image
|
|
| 15 |
import gradio as gr
|
| 16 |
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
from diffusers import (
|
| 22 |
DiffusionPipeline,
|
| 23 |
AutoencoderTiny,
|
|
@@ -36,14 +32,6 @@ from diffusers.utils import load_image
|
|
| 36 |
|
| 37 |
import spaces
|
| 38 |
|
| 39 |
-
#---if workspace = local or colab---
|
| 40 |
-
|
| 41 |
-
# Authenticate with Hugging Face
|
| 42 |
-
# from huggingface_hub import login
|
| 43 |
-
|
| 44 |
-
# Log in to Hugging Face using the provided token
|
| 45 |
-
# hf_token = 'hf-token-authentication'
|
| 46 |
-
# login(hf_token)
|
| 47 |
|
| 48 |
|
| 49 |
def calculate_shift(
|
|
|
|
| 1 |
|
| 2 |
|
|
|
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
import copy
|
|
|
|
| 14 |
import gradio as gr
|
| 15 |
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
from diffusers import (
|
| 18 |
DiffusionPipeline,
|
| 19 |
AutoencoderTiny,
|
|
|
|
| 32 |
|
| 33 |
import spaces
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
def calculate_shift(
|