LukeOLuck commited on
Commit
5f55acc
1 Parent(s): 3754a15

don't return json

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def predict(text) -> Tuple[Dict, float]:
70
  pred_time = round(end_time - start_time, 4)
71
 
72
  # Return pred dict and pred time
73
- return {"Top Responses": top_responses}, {"Actual Response": actual_response}, pred_time
74
 
75
  ### 4. Gradio app ###
76
  # Create title, description and article
 
70
  pred_time = round(end_time - start_time, 4)
71
 
72
  # Return pred dict and pred time
73
+ return top_responses, actual_response, pred_time
74
 
75
  ### 4. Gradio app ###
76
  # Create title, description and article