Spaces:
Runtime error
Runtime error
mcps5601
commited on
Commit
·
7cd9a44
1
Parent(s):
8b7768c
Test building app with different input name
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def compute_metrics(
|
|
| 34 |
return compute_metric_threshold
|
| 35 |
|
| 36 |
|
| 37 |
-
def greet(
|
| 38 |
prompt_FT = True
|
| 39 |
file = open(f"class_names.pkl", "rb")
|
| 40 |
classes = pickle.load(file)
|
|
@@ -104,7 +104,7 @@ def greet(input_text):
|
|
| 104 |
)
|
| 105 |
|
| 106 |
testset = InferenceDataset(
|
| 107 |
-
|
| 108 |
tokenizer,
|
| 109 |
args.max_seq_len,
|
| 110 |
template=args.template,
|
|
|
|
| 34 |
return compute_metric_threshold
|
| 35 |
|
| 36 |
|
| 37 |
+
def greet(Liver_CT_Report):
|
| 38 |
prompt_FT = True
|
| 39 |
file = open(f"class_names.pkl", "rb")
|
| 40 |
classes = pickle.load(file)
|
|
|
|
| 104 |
)
|
| 105 |
|
| 106 |
testset = InferenceDataset(
|
| 107 |
+
Liver_CT_Report,
|
| 108 |
tokenizer,
|
| 109 |
args.max_seq_len,
|
| 110 |
template=args.template,
|