Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,16 @@ import torch.nn.functional as F
|
|
17 |
#from torch.nn import CrossEntropyLoss
|
18 |
#from sklearn.decomposition import PCA
|
19 |
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
if len(sys.argv) > 1:
|
22 |
# sys.argv[0] is the script name, sys.argv[1] is the first argument, etc.
|
|
|
17 |
#from torch.nn import CrossEntropyLoss
|
18 |
#from sklearn.decomposition import PCA
|
19 |
import matplotlib.pyplot as plt
|
20 |
+
import json
|
21 |
+
|
22 |
+
# Load configuration file
|
23 |
+
with open('config.json', 'r') as config_file:
|
24 |
+
config = json.load(config_file)
|
25 |
+
arg1 = config.get('arg1', 'default_value1')
|
26 |
+
arg2 = config.get('arg2', 'default_value2')
|
27 |
+
|
28 |
+
print(f"Argument 1: {arg1}")
|
29 |
+
print(f"Argument 2: {arg2}"
|
30 |
|
31 |
if len(sys.argv) > 1:
|
32 |
# sys.argv[0] is the script name, sys.argv[1] is the first argument, etc.
|