Spaces:
Sleeping
Sleeping
Oscar Wang
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def classify_text(text):
|
|
22 |
# Get the probability of the class '1'
|
23 |
prob_1 = probabilities[0][1].item()
|
24 |
|
25 |
-
return {"Probability of being
|
26 |
|
27 |
# Create the Gradio interface
|
28 |
iface = gr.Interface(
|
|
|
22 |
# Get the probability of the class '1'
|
23 |
prob_1 = probabilities[0][1].item()
|
24 |
|
25 |
+
return {"Probability of being AI": prob_1}
|
26 |
|
27 |
# Create the Gradio interface
|
28 |
iface = gr.Interface(
|