Spaces:
Running
Running
Commit
·
86e8ab3
1
Parent(s):
d1fdd95
add requiretment
Browse files
app.py
CHANGED
@@ -32,23 +32,23 @@ def greet(name1, name2, name3, name4):
|
|
32 |
|
33 |
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
|
49 |
# return location
|
50 |
# For the purpose of this example, I'm just returning the values concatenated
|
51 |
-
return f"Inputs received: {str1}, {str2}, {str3}, {str4}, '--------------',
|
52 |
|
53 |
|
54 |
# Define 5 text input boxes with labels
|
|
|
32 |
|
33 |
|
34 |
|
35 |
+
# import subprocess
|
36 |
|
37 |
+
# def get_package_location(package_name):
|
38 |
+
# try:
|
39 |
+
# result = subprocess.check_output(["pip", "show", package_name], text=True)
|
40 |
+
# for line in result.splitlines():
|
41 |
+
# if line.startswith("Location:"):
|
42 |
+
# return line.split(":")[1].strip()
|
43 |
+
# except:
|
44 |
+
# return 'not found'
|
45 |
|
46 |
+
# package_name = "ontogpt" # Replace this with any package name
|
47 |
+
# location = get_package_location(package_name)
|
48 |
|
49 |
# return location
|
50 |
# For the purpose of this example, I'm just returning the values concatenated
|
51 |
+
return f"Inputs received: {str1}, {str2}, {str3}, {str4}, '--------------', '--------------', {output_string1},{error_string1},{output_string2},{error_string2},{output}"
|
52 |
|
53 |
|
54 |
# Define 5 text input boxes with labels
|