Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,14 +5,14 @@ import tempfile
|
|
| 5 |
import subprocess
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
-
import
|
| 9 |
import gradio as gr
|
|
|
|
| 10 |
|
| 11 |
from src.flux.xflux_pipeline import XFluxPipeline
|
| 12 |
|
| 13 |
import os
|
| 14 |
from huggingface_hub import login
|
| 15 |
-
import spaces
|
| 16 |
|
| 17 |
hf_token = os.getenv("HF_TOKEN")
|
| 18 |
if hf_token:
|
|
|
|
| 5 |
import subprocess
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
+
import spaces
|
| 9 |
import gradio as gr
|
| 10 |
+
import torch
|
| 11 |
|
| 12 |
from src.flux.xflux_pipeline import XFluxPipeline
|
| 13 |
|
| 14 |
import os
|
| 15 |
from huggingface_hub import login
|
|
|
|
| 16 |
|
| 17 |
hf_token = os.getenv("HF_TOKEN")
|
| 18 |
if hf_token:
|