Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -48,13 +48,6 @@ try:
|
|
48 |
except Exception as e:
|
49 |
raise ValueError(f"Failed to login to Hugging Face: {str(e)}")
|
50 |
|
51 |
-
# FLUX 파이프라인 초기화
|
52 |
-
pipe = FluxPipeline.from_pretrained(
|
53 |
-
"black-forest-labs/FLUX.1-dev",
|
54 |
-
torch_dtype=torch.float16,
|
55 |
-
use_auth_token=HF_TOKEN
|
56 |
-
)
|
57 |
-
pipe.enable_attention_slicing(slice_size="auto")
|
58 |
|
59 |
|
60 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en", device=-1) # CPU에서 실행
|
|
|
48 |
except Exception as e:
|
49 |
raise ValueError(f"Failed to login to Hugging Face: {str(e)}")
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
|
53 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en", device=-1) # CPU에서 실행
|