Krish30 commited on
Commit
3622997
·
verified ·
1 Parent(s): 870744e

Create script.js

Browse files
Files changed (1) hide show
  1. script.js +18 -0
script.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function analyzeResult(resultType) {
2
+ let url;
3
+ switch(resultType) {
4
+ case 'engg':
5
+ url = 'https://huggingface.co/spaces/ommane/engg-pdf-to-excel';
6
+ break;
7
+ case 'hsc':
8
+ url = 'https://hsc-pdf-to-excel.streamlit.app/';
9
+ break;
10
+ case 'diploma':
11
+ url = 'https://diploma-pdf-to-excel.streamlit.app/';
12
+ break;
13
+ default:
14
+ alert('Unknown result type');
15
+ return;
16
+ }
17
+ window.open(url, '_blank');
18
+ }