Spaces:
Runtime error
Runtime error
Commit
·
c714447
1
Parent(s):
fac3244
Fix Path import error in app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import torch
|
|
3 |
from plonk.pipe import PlonkPipeline
|
4 |
import numpy as np
|
5 |
from PIL import Image
|
|
|
6 |
|
7 |
# Initialize the pipeline
|
8 |
print("Loading PLONK_YFCC model...")
|
@@ -127,6 +128,4 @@ demo = gr.TabbedInterface(
|
|
127 |
)
|
128 |
|
129 |
if __name__ == "__main__":
|
130 |
-
# Add necessary import for pathlib
|
131 |
-
from pathlib import Path
|
132 |
demo.launch()
|
|
|
3 |
from plonk.pipe import PlonkPipeline
|
4 |
import numpy as np
|
5 |
from PIL import Image
|
6 |
+
from pathlib import Path
|
7 |
|
8 |
# Initialize the pipeline
|
9 |
print("Loading PLONK_YFCC model...")
|
|
|
128 |
)
|
129 |
|
130 |
if __name__ == "__main__":
|
|
|
|
|
131 |
demo.launch()
|