paopaoka3325 commited on
Commit
3146e54
·
1 Parent(s): 34da184

add requiretment

Browse files
Files changed (2) hide show
  1. app.py +1 -7
  2. requirements.txt +1 -1
app.py CHANGED
@@ -34,7 +34,6 @@ def greet(name1, name2, name3, name4):
34
  return f"Inputs received: {str1}, {str2}, {str3}, {str4}, {output_string1},{error_string1},{output_string2},{error_string2},{output}"
35
  '''
36
 
37
-
38
  import site
39
  import os
40
 
@@ -43,15 +42,10 @@ def greet(name1, name2, name3, name4):
43
  package_path = os.path.join(directory, package_name)
44
  if os.path.exists(package_path):
45
  return package_path
46
- return None
47
 
48
  package_name = "ontogpt" # You can replace this with any package name
49
  location = get_package_location(package_name)
50
- if location:
51
- print(f"The install location for {package_name} is: {location}")
52
- else:
53
- print(f"{package_name} was not found.")
54
-
55
  return location
56
 
57
  # Define 5 text input boxes with labels
 
34
  return f"Inputs received: {str1}, {str2}, {str3}, {str4}, {output_string1},{error_string1},{output_string2},{error_string2},{output}"
35
  '''
36
 
 
37
  import site
38
  import os
39
 
 
42
  package_path = os.path.join(directory, package_name)
43
  if os.path.exists(package_path):
44
  return package_path
45
+ return 'not found'
46
 
47
  package_name = "ontogpt" # You can replace this with any package name
48
  location = get_package_location(package_name)
 
 
 
 
 
49
  return location
50
 
51
  # Define 5 text input boxes with labels
requirements.txt CHANGED
@@ -1 +1 @@
1
- ontogpt
 
1
+ ontogpt