ysharma HF staff commited on
Commit
28bc405
1 Parent(s): cd00e4b
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -76,6 +76,7 @@ def driver_fun(audio) :
76
  dataset_subset = dataset['Joke'][lower_limit : upper_limit]
77
  data = query({"inputs": {"source_sentence": "That is a happy person","sentences": dataset_subset} } )
78
  if 'error' in data:
 
79
  return 'Error in model inference - Run Again Please', 'Error in model inference - Run Again Please', None
80
  print(f"type(data) : {type(data)}")
81
  print(f"data : {data} ")
 
76
  dataset_subset = dataset['Joke'][lower_limit : upper_limit]
77
  data = query({"inputs": {"source_sentence": "That is a happy person","sentences": dataset_subset} } )
78
  if 'error' in data:
79
+ print(f"Error is : {data}")
80
  return 'Error in model inference - Run Again Please', 'Error in model inference - Run Again Please', None
81
  print(f"type(data) : {type(data)}")
82
  print(f"data : {data} ")