Spaces:
Runtime error
Runtime error
Commit
·
c50df77
1
Parent(s):
22e36cf
adsf
Browse files- app.py +1 -9
- requirements.txt +0 -1
app.py
CHANGED
@@ -5,10 +5,6 @@ import requests
|
|
5 |
import pandas as pd
|
6 |
import matplotlib.pyplot as plt
|
7 |
import numpy as np
|
8 |
-
from sklearn import preprocessing
|
9 |
-
from sklearn.model_selection import train_test_split
|
10 |
-
from sklearn.ensemble import RandomForestRegressor
|
11 |
-
|
12 |
|
13 |
import hopsworks
|
14 |
import joblib
|
@@ -88,12 +84,8 @@ def titanic(Pclass, Sex, Age, SibSp, Parch, Fare, Embarked):
|
|
88 |
|
89 |
survived = res[0]
|
90 |
|
91 |
-
# Temp:
|
92 |
-
age = 20
|
93 |
-
gender = "female"
|
94 |
-
|
95 |
# Todo: survivor, "https://fakeface.rest/face/json?maximum_age=50&gender=female&minimum_age=49"
|
96 |
-
generate_survivor_url = f'https://fakeface.rest/face/json?maximum_age={Age}&gender={Sex}&minimum_age={
|
97 |
randomized_face_url = requests.get(
|
98 |
generate_survivor_url).json()["image_url"]
|
99 |
|
|
|
5 |
import pandas as pd
|
6 |
import matplotlib.pyplot as plt
|
7 |
import numpy as np
|
|
|
|
|
|
|
|
|
8 |
|
9 |
import hopsworks
|
10 |
import joblib
|
|
|
84 |
|
85 |
survived = res[0]
|
86 |
|
|
|
|
|
|
|
|
|
87 |
# Todo: survivor, "https://fakeface.rest/face/json?maximum_age=50&gender=female&minimum_age=49"
|
88 |
+
generate_survivor_url = f'https://fakeface.rest/face/json?maximum_age={Age}&gender={Sex}&minimum_age={Age}'
|
89 |
randomized_face_url = requests.get(
|
90 |
generate_survivor_url).json()["image_url"]
|
91 |
|
requirements.txt
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
hopsworks
|
2 |
joblib
|
3 |
-
scikit-learn
|
4 |
gradio
|
5 |
numpy
|
6 |
pandas
|
|
|
1 |
hopsworks
|
2 |
joblib
|
|
|
3 |
gradio
|
4 |
numpy
|
5 |
pandas
|