paopaoka3325 commited on
Commit
ea38145
·
1 Parent(s): a23a68c

Add application files

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ def greet(name1, name2):
18
  str3 = "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" # huggingface
19
  str4 = name2
20
 
21
- """
22
  with open('abstractsave.txt', 'w') as f:
23
  f.write(name4)
24
 
@@ -36,7 +36,7 @@ def greet(name1, name2):
36
  run_command(f"poetry run runoak set-apikey -e bioportal {str2}")
37
  run_command(f"poetry run runoak set-apikey -e hfhub-key {str3}")
38
  # output = run_command(f"ontogpt extract -t gocam.GoCamAnnotations -i ./abstract.txt")
39
- output = run_command(f"cancerontogpt extract -t cancer.CancerAnnotations -i ./abstractsave.txt")"""
40
 
41
  # output_string1, error_string1=run_command("poetry")# ontogpt")
42
 
@@ -46,7 +46,7 @@ def greet(name1, name2):
46
  # return f"Inputs received: {str1} \n, {str2}, {str3}, {str4}, '--------------', '--------------', {output_string1},{error_string1},{output_string2},{error_string2},{output}"
47
  # # return location
48
  # For the purpose of this example, I'm just returning the values concatenated
49
- return f"{name2}"
50
 
51
  # Define 5 text input boxes with labels
52
  input_boxes = [
 
18
  str3 = "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" # huggingface
19
  str4 = name2
20
 
21
+
22
  with open('abstractsave.txt', 'w') as f:
23
  f.write(name4)
24
 
 
36
  run_command(f"poetry run runoak set-apikey -e bioportal {str2}")
37
  run_command(f"poetry run runoak set-apikey -e hfhub-key {str3}")
38
  # output = run_command(f"ontogpt extract -t gocam.GoCamAnnotations -i ./abstract.txt")
39
+ # output = run_command(f"cancerontogpt extract -t cancer.CancerAnnotations -i ./abstractsave.txt")"""
40
 
41
  # output_string1, error_string1=run_command("poetry")# ontogpt")
42
 
 
46
  # return f"Inputs received: {str1} \n, {str2}, {str3}, {str4}, '--------------', '--------------', {output_string1},{error_string1},{output_string2},{error_string2},{output}"
47
  # # return location
48
  # For the purpose of this example, I'm just returning the values concatenated
49
+ return f"{str4}"
50
 
51
  # Define 5 text input boxes with labels
52
  input_boxes = [