Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,8 @@ def predict(img):
|
|
| 12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 13 |
title = " Car type Classifier"
|
| 14 |
description = "A car classifier trained using <a href='https://www.kaggle.com/datasets/jutrera/stanford-car-dataset-by-classes-folder'> the Oxford car dataset </a> with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
| 15 |
-
|
|
|
|
| 16 |
examples=["2009_bugatti_veyron_grand_sport_10.jpg", "07-x5-bmw.jpg"]
|
| 17 |
interpretation='default'
|
| 18 |
enable_queue=True
|
|
@@ -23,7 +24,9 @@ gr.Interface(fn=predict,
|
|
| 23 |
title=title,
|
| 24 |
description=description,
|
| 25 |
article=article,
|
|
|
|
| 26 |
enable_queue= enable_queue,
|
| 27 |
-
interpretation=interpretation
|
|
|
|
| 28 |
|
| 29 |
|
|
|
|
| 12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 13 |
title = " Car type Classifier"
|
| 14 |
description = "A car classifier trained using <a href='https://www.kaggle.com/datasets/jutrera/stanford-car-dataset-by-classes-folder'> the Oxford car dataset </a> with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
| 15 |
+
css = "body {background-color: green}"
|
| 16 |
+
article="<strong>style='text-align: center'><ahref='https://github.com/anibahi' target='_blank'> my github </a></strong>"
|
| 17 |
examples=["2009_bugatti_veyron_grand_sport_10.jpg", "07-x5-bmw.jpg"]
|
| 18 |
interpretation='default'
|
| 19 |
enable_queue=True
|
|
|
|
| 24 |
title=title,
|
| 25 |
description=description,
|
| 26 |
article=article,
|
| 27 |
+
css = css ,
|
| 28 |
enable_queue= enable_queue,
|
| 29 |
+
interpretation=interpretation
|
| 30 |
+
).launch(share=True)
|
| 31 |
|
| 32 |
|