Update app.py
Browse files
app.py
CHANGED
@@ -46,15 +46,15 @@ def getColorMap(kernel, gamma):
|
|
46 |
#XOR_TABLE markdown text
|
47 |
XOR_TABLE = """
|
48 |
<style type="text/css">
|
49 |
-
.tg {border-collapse:collapse;border-spacing:
|
50 |
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
51 |
overflow:hidden;padding:10px 5px;word-break:normal;}
|
52 |
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
53 |
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
|
54 |
.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}
|
55 |
-
table {margin:auto;}
|
56 |
</style>
|
57 |
<table class="tg">
|
|
|
58 |
<thead>
|
59 |
<tr>
|
60 |
<th class="tg-c3ow">A</th>
|
@@ -112,11 +112,7 @@ with gr.Blocks() as demo:
|
|
112 |
|
113 |
gr.HTML("<hr>")
|
114 |
|
115 |
-
|
116 |
-
with gr.Column():
|
117 |
-
gr.Markdown("## Table explaining the 'XOR' operator")
|
118 |
-
gr.HTML(XOR_TABLE)
|
119 |
-
# gr.Image(xor_image, label="Table explaining the 'XOR' operator")
|
120 |
|
121 |
|
122 |
if __name__ == "__main__":
|
|
|
46 |
#XOR_TABLE markdown text
|
47 |
XOR_TABLE = """
|
48 |
<style type="text/css">
|
49 |
+
.tg {border-collapse:collapse;border-spacing:10PX;width:70%;margin-auto}
|
50 |
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
51 |
overflow:hidden;padding:10px 5px;word-break:normal;}
|
52 |
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
53 |
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
|
54 |
.tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}
|
|
|
55 |
</style>
|
56 |
<table class="tg">
|
57 |
+
<caption margin-bottom=10px>Table explaining the 'XOR' operator</caption>
|
58 |
<thead>
|
59 |
<tr>
|
60 |
<th class="tg-c3ow">A</th>
|
|
|
112 |
|
113 |
gr.HTML("<hr>")
|
114 |
|
115 |
+
gr.HTML(XOR_TABLE)
|
|
|
|
|
|
|
|
|
116 |
|
117 |
|
118 |
if __name__ == "__main__":
|