jesusvilela commited on
Commit
534a5a6
·
1 Parent(s): ed8decf

Upload folder using huggingface_hub

Browse files
._decision_tree_regressor.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9e2d339ce8daf612fb441ff4e4bd06ac0ce4d7ed1de9e14389536a1c568c519b
3
  size 4096
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97e83c21b438a441408d13e7d8525cc97418387e2d473f4a05d813bf663b530e
3
  size 4096
.idea/._workspace.xml CHANGED
Binary files a/.idea/._workspace.xml and b/.idea/._workspace.xml differ
 
.idea/workspace.xml CHANGED
@@ -4,7 +4,7 @@
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
- <list default="true" id="110c2627-9032-47cf-a1c1-bc62c4ddc737" name="Changes" comment="" />
8
  <option name="SHOW_DIALOG" value="false" />
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -56,6 +56,19 @@
56
  <option name="presentableId" value="Default" />
57
  <updated>1699914106482</updated>
58
  </task>
 
 
 
 
 
 
 
 
 
59
  <servers />
60
  </component>
 
 
 
 
61
  </project>
 
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
+ <list default="true" id="110c2627-9032-47cf-a1c1-bc62c4ddc737" name="Changes" comment="alpha 0.1" />
8
  <option name="SHOW_DIALOG" value="false" />
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
 
56
  <option name="presentableId" value="Default" />
57
  <updated>1699914106482</updated>
58
  </task>
59
+ <task id="LOCAL-00001" summary="alpha 0.1">
60
+ <option name="closed" value="true" />
61
+ <created>1699947245832</created>
62
+ <option name="number" value="00001" />
63
+ <option name="presentableId" value="LOCAL-00001" />
64
+ <option name="project" value="LOCAL" />
65
+ <updated>1699947245832</updated>
66
+ </task>
67
+ <option name="localTasksCounter" value="2" />
68
  <servers />
69
  </component>
70
+ <component name="VcsManagerConfiguration">
71
+ <MESSAGE value="alpha 0.1" />
72
+ <option name="LAST_COMMIT_MESSAGE" value="alpha 0.1" />
73
+ </component>
74
  </project>
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import gradio as gr
2
  import pandas as pd
3
  import joblib
4
- from gpt4all import GPT4Allt
5
  from sklearn.tree import DecisionTreeRegressor
 
6
 
7
  # Load the trained model
8
  decision_tree_regressor = joblib.load('./decision_tree_regressor.joblib')
@@ -11,7 +12,6 @@ decision_tree_regressor = joblib.load('./decision_tree_regressor.joblib')
11
  model_name = "mistral-7b-openorca.Q4_0.gguf" # Replace with your preferred model
12
  model = GPT4All(model_name)
13
 
14
-
15
  def collect_data(fasting_duration, meal_timing, body_weight, age, gender, height):
16
  # Prepare the data for prediction
17
  data = {
 
1
  import gradio as gr
2
  import pandas as pd
3
  import joblib
4
+ from gpt4all import GPT4All
5
  from sklearn.tree import DecisionTreeRegressor
6
+ from transformers import AutoModelForCausalLM, AutoTokenizer
7
 
8
  # Load the trained model
9
  decision_tree_regressor = joblib.load('./decision_tree_regressor.joblib')
 
12
  model_name = "mistral-7b-openorca.Q4_0.gguf" # Replace with your preferred model
13
  model = GPT4All(model_name)
14
 
 
15
  def collect_data(fasting_duration, meal_timing, body_weight, age, gender, height):
16
  # Prepare the data for prediction
17
  data = {
decision_tree_regressor.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9cbb0b25f517ecbe6e08ee11fc588ca36e31adb964b28ed4bb9930b50bcded29
3
  size 116737
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62f8487475342a4896e4dc58e243f6dc0d9bf894049e533f8ad86120a6c88589
3
  size 116737
requirements.txt CHANGED
@@ -2,4 +2,7 @@ joblib~=1.2.0
2
  gpt4all~=2.0.2
3
  gradio
4
  pandas
5
- scikit-learn
 
 
 
 
2
  gpt4all~=2.0.2
3
  gradio
4
  pandas
5
+ scikit-learn==1.3.1
6
+ huggingface-hub
7
+ transformers
8
+ charset_normalizer