MohammadAliMKH commited on
Commit
b9ad85c
1 Parent(s): 07885c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -5,6 +5,15 @@ from predict import predict_gradio
5
  title = "Mohammad Ali Food101 Classification🍔"
6
  description = "This demo is a related to classification of 101 different foods. Test Accuracy is almost 64.0% in 5 Epochs on Effiecientnet B2 model on T4 GPU for about 1 hour and 30 minutes training time"
7
 
 
 
 
 
 
 
 
 
 
8
 
9
  demo = gr.Interface(
10
  predict_gradio,
@@ -13,7 +22,8 @@ demo = gr.Interface(
13
  gr.Label(num_top_classes = 1 , label = "Model Predicts Image as a")],
14
  examples=['examples/3243342.jpg', 'examples/1652678.jpg', 'examples/1046933.jpg', 'examples/1840999.jpg', 'examples/168855.jpg'],
15
  title = title,
16
- description = description
 
17
  )
18
 
19
  demo.launch()
 
5
  title = "Mohammad Ali Food101 Classification🍔"
6
  description = "This demo is a related to classification of 101 different foods. Test Accuracy is almost 64.0% in 5 Epochs on Effiecientnet B2 model on T4 GPU for about 1 hour and 30 minutes training time"
7
 
8
+ with open('gradio_results.md') as f:
9
+ article = f.read()
10
+
11
+ interface_options = {
12
+ "article": article,
13
+ "layout": "horizontal",
14
+ "theme": "default",
15
+ }
16
+
17
 
18
  demo = gr.Interface(
19
  predict_gradio,
 
22
  gr.Label(num_top_classes = 1 , label = "Model Predicts Image as a")],
23
  examples=['examples/3243342.jpg', 'examples/1652678.jpg', 'examples/1046933.jpg', 'examples/1840999.jpg', 'examples/168855.jpg'],
24
  title = title,
25
+ description = description,
26
+ **interface_options
27
  )
28
 
29
  demo.launch()