Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -75,6 +75,8 @@ def driver_fun(audio) :
|
|
75 |
print(f"lower_limit : upper_limit = {lower_limit} : {upper_limit}")
|
76 |
dataset_subset = dataset['Joke'][lower_limit : upper_limit]
|
77 |
data = query({"inputs": {"source_sentence": "That is a happy person","sentences": dataset_subset} } )
|
|
|
|
|
78 |
max_match_score = max(data)
|
79 |
indx_score = data.index(max_match_score)
|
80 |
joke = max_match_score[indx_score]
|
|
|
75 |
print(f"lower_limit : upper_limit = {lower_limit} : {upper_limit}")
|
76 |
dataset_subset = dataset['Joke'][lower_limit : upper_limit]
|
77 |
data = query({"inputs": {"source_sentence": "That is a happy person","sentences": dataset_subset} } )
|
78 |
+
print(f"type(data) : {type(data)}")
|
79 |
+
print(f"data : {data} ")
|
80 |
max_match_score = max(data)
|
81 |
indx_score = data.index(max_match_score)
|
82 |
joke = max_match_score[indx_score]
|