Spaces:
Running
Running
Commit
·
0724b5c
1
Parent(s):
98f951a
Add application files
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def greet(name1, name2):
|
|
19 |
str3_huggingface = "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" # huggingface
|
20 |
str4_input = name2
|
21 |
|
22 |
-
|
23 |
with open('abstractsave.txt', 'w') as f:
|
24 |
f.write(str4_input)
|
25 |
|
@@ -70,6 +70,15 @@ def greet(name1, name2):
|
|
70 |
|
71 |
# Convert the key-value pairs into a table format (a list of lists)
|
72 |
df_pred = pd.DataFrame(key_value_pairs, columns = ["Ontology Attribute", "Value"]).iloc[:19,:]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
html_output = df_pred.to_html()
|
75 |
|
|
|
19 |
str3_huggingface = "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" # huggingface
|
20 |
str4_input = name2
|
21 |
|
22 |
+
'''
|
23 |
with open('abstractsave.txt', 'w') as f:
|
24 |
f.write(str4_input)
|
25 |
|
|
|
70 |
|
71 |
# Convert the key-value pairs into a table format (a list of lists)
|
72 |
df_pred = pd.DataFrame(key_value_pairs, columns = ["Ontology Attribute", "Value"]).iloc[:19,:]
|
73 |
+
'''
|
74 |
+
|
75 |
+
# Generate a DataFrame with 50 rows and 2 columns filled with random numbers
|
76 |
+
num_rows = 50
|
77 |
+
num_cols = 2
|
78 |
+
data = np.random.rand(num_rows, num_cols)
|
79 |
+
|
80 |
+
# Create a DataFrame
|
81 |
+
df_pred = pd.DataFrame(data, columns=['Column1', 'Column2'])
|
82 |
|
83 |
html_output = df_pred.to_html()
|
84 |
|