Sampathkumarbandaru commited on
Commit
d5b8dbb
·
verified ·
1 Parent(s): 4493b65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -35,20 +35,8 @@ iface = gr.Interface(
35
  gr.JSON(label="📥 Salesforce Response"),
36
  gr.HTML(
37
  """
38
- <button onclick="printSummary()" style='margin-top:10px; padding:10px 20px; font-size:16px;'>🖨️ Print Summary</button>
39
- <script>
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()