MuskanMjn commited on
Commit
42031dd
·
1 Parent(s): c599d42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -43,6 +43,15 @@ def getColorMap(kernel, gamma):
43
  plt.ylabel("Y",fontsize='13') #adds a label in the y axis
44
  return plt, calculate_score(clf)
45
 
 
 
 
 
 
 
 
 
 
46
 
47
  with gr.Blocks() as demo:
48
  gr.Markdown("## Learning the XOR function: An application of Binary Classification using Non-linear SVM")
@@ -68,8 +77,9 @@ with gr.Blocks() as demo:
68
 
69
  gr.HTML("<hr>")
70
 
71
- xor_image = Image.open("xor.png")
72
- gr.Image(xor_image, label="Table explaining the 'XOR' operator")
 
73
 
74
 
75
  if __name__ == "__main__":
 
43
  plt.ylabel("Y",fontsize='13') #adds a label in the y axis
44
  return plt, calculate_score(clf)
45
 
46
+ #XOR_TABLE markdown text
47
+ XOR_TABLE = """| A | B | A XOR B |
48
+ |---|---|---------|
49
+ | 0 | 0 | 0 |
50
+ | 0 | 1 | 1 |
51
+ | 1 | 0 | 1 |
52
+ | 1 | 1 | 0 |
53
+ """
54
+
55
 
56
  with gr.Blocks() as demo:
57
  gr.Markdown("## Learning the XOR function: An application of Binary Classification using Non-linear SVM")
 
77
 
78
  gr.HTML("<hr>")
79
 
80
+ # xor_image = Image.open("xor.png")
81
+ gr.Markdown(XOR_TABLE)
82
+ # gr.Image(xor_image, label="Table explaining the 'XOR' operator")
83
 
84
 
85
  if __name__ == "__main__":