Spaces:
Running
Running
Update index.html
Browse files- index.html +127 -19
index.html
CHANGED
|
@@ -1,19 +1,127 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>COBOL β Python Translator</title>
|
| 7 |
+
<style>
|
| 8 |
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
| 9 |
+
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0f1117; color: #e0e0e0; padding: 2rem; }
|
| 10 |
+
h1 { font-size: 1.6rem; color: #fff; margin-bottom: 0.4rem; }
|
| 11 |
+
.subtitle { color: #888; font-size: 0.9rem; margin-bottom: 2rem; }
|
| 12 |
+
.badge { display: inline-block; background: #1e293b; border: 1px solid #334; color: #94a3b8; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; margin-right: 6px; }
|
| 13 |
+
.examples { display: flex; flex-direction: column; gap: 1.5rem; max-width: 860px; margin: 0 auto; }
|
| 14 |
+
.card { background: #1a1d27; border: 1px solid #2a2d3a; border-radius: 10px; overflow: hidden; }
|
| 15 |
+
.card-header { padding: 0.75rem 1rem; background: #13151f; font-size: 0.8rem; color: #666; border-bottom: 1px solid #2a2d3a; }
|
| 16 |
+
.split { display: grid; grid-template-columns: 1fr 1fr; }
|
| 17 |
+
.pane { padding: 1rem; }
|
| 18 |
+
.pane:first-child { border-right: 1px solid #2a2d3a; }
|
| 19 |
+
.lang { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
|
| 20 |
+
.cobol-label { color: #f59e0b; }
|
| 21 |
+
.python-label { color: #34d399; }
|
| 22 |
+
pre { font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.82rem; line-height: 1.6; white-space: pre-wrap; }
|
| 23 |
+
.cobol { color: #fcd34d; }
|
| 24 |
+
.python { color: #6ee7b7; }
|
| 25 |
+
.stats { display: flex; gap: 2rem; justify-content: center; margin: 0 auto 2rem; max-width: 860px; }
|
| 26 |
+
.stat { text-align: center; }
|
| 27 |
+
.stat-val { font-size: 1.4rem; font-weight: 700; color: #fff; }
|
| 28 |
+
.stat-label { font-size: 0.75rem; color: #666; margin-top: 2px; }
|
| 29 |
+
.links { text-align: center; margin-top: 2rem; }
|
| 30 |
+
.links a { color: #818cf8; text-decoration: none; margin: 0 1rem; font-size: 0.9rem; }
|
| 31 |
+
.links a:hover { text-decoration: underline; }
|
| 32 |
+
@media(max-width: 600px) { .split { grid-template-columns: 1fr; } .pane:first-child { border-right: none; border-bottom: 1px solid #2a2d3a; } }
|
| 33 |
+
</style>
|
| 34 |
+
</head>
|
| 35 |
+
<body>
|
| 36 |
+
|
| 37 |
+
<div style="max-width:860px;margin:0 auto">
|
| 38 |
+
<h1>COBOL β Python Translator</h1>
|
| 39 |
+
<p class="subtitle">
|
| 40 |
+
<span class="badge">Qwen2.5-Coder-1.5B</span>
|
| 41 |
+
<span class="badge">QLoRA Β· Unsloth</span>
|
| 42 |
+
<span class="badge">Training loss 2.14 β 0.13</span>
|
| 43 |
+
</p>
|
| 44 |
+
|
| 45 |
+
<div class="stats">
|
| 46 |
+
<div class="stat"><div class="stat-val">1.5B</div><div class="stat-label">Parameters</div></div>
|
| 47 |
+
<div class="stat"><div class="stat-val">125</div><div class="stat-label">Training steps</div></div>
|
| 48 |
+
<div class="stat"><div class="stat-val">0.13</div><div class="stat-label">Final loss</div></div>
|
| 49 |
+
<div class="stat"><div class="stat-val">94%</div><div class="stat-label">Loss reduction</div></div>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<div class="examples">
|
| 53 |
+
|
| 54 |
+
<div class="card">
|
| 55 |
+
<div class="card-header">Example 1 β Arithmetic computation</div>
|
| 56 |
+
<div class="split">
|
| 57 |
+
<div class="pane">
|
| 58 |
+
<div class="lang cobol-label">COBOL</div>
|
| 59 |
+
<pre class="cobol">COMPUTE WS-TAX = WS-PRICE * WS-TAX-RATE</pre>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="pane">
|
| 62 |
+
<div class="lang python-label">Python</div>
|
| 63 |
+
<pre class="python">from decimal import Decimal
|
| 64 |
+
ws_tax = Decimal(str(ws_price)) * Decimal(str(ws_tax_rate))</pre>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<div class="card">
|
| 70 |
+
<div class="card-header">Example 2 β String move</div>
|
| 71 |
+
<div class="split">
|
| 72 |
+
<div class="pane">
|
| 73 |
+
<div class="lang cobol-label">COBOL</div>
|
| 74 |
+
<pre class="cobol">MOVE WS-CUSTOMER-NAME TO WS-OUTPUT-NAME</pre>
|
| 75 |
+
</div>
|
| 76 |
+
<div class="pane">
|
| 77 |
+
<div class="lang python-label">Python</div>
|
| 78 |
+
<pre class="python">ws_output_name = ws_customer_name</pre>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
|
| 83 |
+
<div class="card">
|
| 84 |
+
<div class="card-header">Example 3 β Conditional logic</div>
|
| 85 |
+
<div class="split">
|
| 86 |
+
<div class="pane">
|
| 87 |
+
<div class="lang cobol-label">COBOL</div>
|
| 88 |
+
<pre class="cobol">IF WS-BALANCE > ZERO
|
| 89 |
+
PERFORM CREDIT-ROUTINE
|
| 90 |
+
END-IF</pre>
|
| 91 |
+
</div>
|
| 92 |
+
<div class="pane">
|
| 93 |
+
<div class="lang python-label">Python</div>
|
| 94 |
+
<pre class="python">if ws_balance > 0:
|
| 95 |
+
credit_routine()</pre>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div class="card">
|
| 101 |
+
<div class="card-header">Example 4 β Loop</div>
|
| 102 |
+
<div class="split">
|
| 103 |
+
<div class="pane">
|
| 104 |
+
<div class="lang cobol-label">COBOL</div>
|
| 105 |
+
<pre class="cobol">PERFORM VARYING WS-IDX FROM 1 BY 1
|
| 106 |
+
UNTIL WS-IDX > WS-MAX
|
| 107 |
+
ADD 1 TO WS-TOTAL
|
| 108 |
+
END-PERFORM</pre>
|
| 109 |
+
</div>
|
| 110 |
+
<div class="pane">
|
| 111 |
+
<div class="lang python-label">Python</div>
|
| 112 |
+
<pre class="python">for ws_idx in range(1, ws_max + 1):
|
| 113 |
+
ws_total += 1</pre>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
<div class="links">
|
| 121 |
+
<a href="https://huggingface.co/dishants0605/qwen2.5-cobol-python-translator">Model on HuggingFace</a>
|
| 122 |
+
<a href="https://github.com/dishantSasane/Cobol-Python-Fine-Tuning">GitHub</a>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
</body>
|
| 127 |
+
</html>
|