Update app.py
Browse files
app.py
CHANGED
@@ -35,20 +35,8 @@ iface = gr.Interface(
|
|
35 |
gr.JSON(label="📥 Salesforce Response"),
|
36 |
gr.HTML(
|
37 |
"""
|
38 |
-
|
39 |
-
|
40 |
-
function printSummary() {
|
41 |
-
const summary = document.querySelector("#summary-box textarea").value;
|
42 |
-
const win = window.open('', '', 'height=700,width=800');
|
43 |
-
win.document.write('<html><head><title>Contract Summary</title></head><body>');
|
44 |
-
win.document.write('<pre style="font-family: Arial; font-size: 14px;">' + summary + '</pre>');
|
45 |
-
win.document.write('</body></html>');
|
46 |
-
win.document.close();
|
47 |
-
win.focus();
|
48 |
-
win.print();
|
49 |
-
win.close();
|
50 |
-
}
|
51 |
-
</script>
|
52 |
"""
|
53 |
)
|
54 |
],
|
@@ -58,4 +46,4 @@ iface = gr.Interface(
|
|
58 |
)
|
59 |
|
60 |
if __name__ == "__main__":
|
61 |
-
iface.launch()
|
|
|
35 |
gr.JSON(label="📥 Salesforce Response"),
|
36 |
gr.HTML(
|
37 |
"""
|
38 |
+
🖨️ Print Summary
|
39 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"""
|
41 |
)
|
42 |
],
|
|
|
46 |
)
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
+
iface.launch()
|