Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe_aesthetic = pipeline("image-classification", "
|
5 |
def aesthetic(input_img):
|
6 |
data = pipe_aesthetic(input_img, top_k=2)
|
7 |
final = {}
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipe_aesthetic = pipeline("image-classification", "./sonic")
|
5 |
def aesthetic(input_img):
|
6 |
data = pipe_aesthetic(input_img, top_k=2)
|
7 |
final = {}
|