Spaces:
Runtime error
Runtime error
jaifar530
commited on
app.py
CHANGED
|
@@ -238,11 +238,9 @@ def AI_vs_AI_RandomForest_88_Samples(df):
|
|
| 238 |
clf_loaded = pickle.load(file)
|
| 239 |
|
| 240 |
input_features = df['paragraph'].apply(extract_features_AI_vs_AI_RandomForest_88_Samples)
|
| 241 |
-
|
| 242 |
-
predicted_llm = clf_loaded.predict(input_features)
|
| 243 |
-
st.write(f"Predicted LLM: {predicted_llm[0]}")
|
| 244 |
-
|
| 245 |
try:
|
|
|
|
|
|
|
| 246 |
predicted_proba = clf_loaded.predict_proba(input_features)
|
| 247 |
except Exception as e:
|
| 248 |
st.write(f"An error occurred: {str(e)}")
|
|
|
|
| 238 |
clf_loaded = pickle.load(file)
|
| 239 |
|
| 240 |
input_features = df['paragraph'].apply(extract_features_AI_vs_AI_RandomForest_88_Samples)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
try:
|
| 242 |
+
predicted_llm = clf_loaded.predict(input_features)
|
| 243 |
+
st.write(f"Predicted LLM: {predicted_llm[0]}")
|
| 244 |
predicted_proba = clf_loaded.predict_proba(input_features)
|
| 245 |
except Exception as e:
|
| 246 |
st.write(f"An error occurred: {str(e)}")
|