sandygmaharaj commited on
Commit
5a07490
·
1 Parent(s): a12fa62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -33,7 +33,6 @@ title = "Students emotion classifer"
33
  description = """<!DOCTYPE html>
34
  <html>
35
  <body>
36
- <h1>Student Emotion classifier</h1>
37
  <div style="display: flex; flex-wrap: wrap;">
38
  <div style="width: 200px; margin: 10px;">
39
  <div style="background-color: orange; width: 50px; height: 50px;"></div>
@@ -67,5 +66,5 @@ enable_queue=True
67
 
68
  #gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,interpretation=interpretation,enable_queue=enable_queue).launch()
69
  #gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.ScatterPlot(),title=title,description=description,interpretation=interpretation,enable_queue=enable_queue, share=True).launch()
70
- #gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.Image(),title=title,description=description,enable_queue=enable_queue).launch()
71
- gr.Interface(fn=predict,inputs=gr.Image(shape=(512, 512)),outputs=gr.Image(),title=title,description=description,enable_queue=enable_queue).launch()
 
33
  description = """<!DOCTYPE html>
34
  <html>
35
  <body>
 
36
  <div style="display: flex; flex-wrap: wrap;">
37
  <div style="width: 200px; margin: 10px;">
38
  <div style="background-color: orange; width: 50px; height: 50px;"></div>
 
66
 
67
  #gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,interpretation=interpretation,enable_queue=enable_queue).launch()
68
  #gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.ScatterPlot(),title=title,description=description,interpretation=interpretation,enable_queue=enable_queue, share=True).launch()
69
+ gr.Interface(fn=predict,inputs=gr.Image(source="webcam",shape=(512, 512)),outputs=gr.Image(),title=title,description=description,enable_queue=enable_queue).launch()
70
+ #gr.Interface(fn=predict,inputs=gr.Image(shape=(512, 512)),outputs=gr.Image(),title=title,description=description,enable_queue=enable_queue).launch()