don't return json
Browse files
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
|
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
|