paopaoka3325 commited on
Commit
148e073
·
1 Parent(s): 29de193

Add application files

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -15,8 +15,6 @@ demo.launch()
15
  def greet(name1, name2):
16
  # Storing each input in a variable, you can process or save them as you like
17
  str1_openai = name1 ## openai
18
- str2_bioportal = "213e22ba-4c3b-402b-bd36-6e9d4e86b1b5" #bioportal
19
- str3_huggingface = "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" # huggingface
20
  str4_input = name2
21
 
22
 
@@ -34,8 +32,6 @@ def greet(name1, name2):
34
  ##### output_string1, error_string1= run_command("pip install optogpt")
35
  output_string1, error_string1 = run_command("curl -sSL https://install.python-poetry.org | python3 -")
36
  output_string2, error_string2 = run_command(f"poetry run runoak set-apikey -e openai {str1_openai}")
37
- run_command(f"poetry run runoak set-apikey -e bioportal {str2_bioportal}")
38
- run_command(f"poetry run runoak set-apikey -e hfhub-key {str3_huggingface}")
39
  ##### output = run_command(f"ontogpt extract -t gocam.GoCamAnnotations -i ./abstract.txt")
40
  output = run_command(f"mcodegpt extract -t cancer.CancerAnnotations -i ./abstractsave.txt")
41
 
 
15
  def greet(name1, name2):
16
  # Storing each input in a variable, you can process or save them as you like
17
  str1_openai = name1 ## openai
 
 
18
  str4_input = name2
19
 
20
 
 
32
  ##### output_string1, error_string1= run_command("pip install optogpt")
33
  output_string1, error_string1 = run_command("curl -sSL https://install.python-poetry.org | python3 -")
34
  output_string2, error_string2 = run_command(f"poetry run runoak set-apikey -e openai {str1_openai}")
 
 
35
  ##### output = run_command(f"ontogpt extract -t gocam.GoCamAnnotations -i ./abstract.txt")
36
  output = run_command(f"mcodegpt extract -t cancer.CancerAnnotations -i ./abstractsave.txt")
37