anibahug commited on
Commit
072c3f1
·
1 Parent(s): 6cc5571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- article="<p style='text-align: center'><a href='https://aniba' target='_blank'> github code</a></p>"
 
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).launch(share=True)
 
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