samyak152002
commited on
Commit
•
629d1ef
1
Parent(s):
36b702b
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,15 @@ def generate_data(start_value, fluctuation, noise_scale, size):
|
|
9 |
return time.tolist(), data.tolist()
|
10 |
|
11 |
def fetch_blood_oxygen():
|
12 |
-
time, oxygen_level = generate_data(start_value=97, fluctuation=5, noise_scale=
|
13 |
return {"time": time, "oxygen_level": oxygen_level}
|
14 |
|
15 |
def fetch_heart_rate():
|
16 |
-
time, heart_rate = generate_data(start_value=75, fluctuation=10, noise_scale=
|
17 |
return {"time": time, "heart_rate": heart_rate}
|
18 |
|
19 |
def fetch_sugar_level():
|
20 |
-
time, sugar_level = generate_data(start_value=90, fluctuation=15, noise_scale=
|
21 |
return {"time": time, "sugar_level": sugar_level}
|
22 |
|
23 |
# Create Gradio interfaces for each of the APIs
|
|
|
9 |
return time.tolist(), data.tolist()
|
10 |
|
11 |
def fetch_blood_oxygen():
|
12 |
+
time, oxygen_level = generate_data(start_value=97, fluctuation=5, noise_scale=5, size=10)
|
13 |
return {"time": time, "oxygen_level": oxygen_level}
|
14 |
|
15 |
def fetch_heart_rate():
|
16 |
+
time, heart_rate = generate_data(start_value=75, fluctuation=10, noise_scale=10, size=10)
|
17 |
return {"time": time, "heart_rate": heart_rate}
|
18 |
|
19 |
def fetch_sugar_level():
|
20 |
+
time, sugar_level = generate_data(start_value=90, fluctuation=15, noise_scale=20, size=10)
|
21 |
return {"time": time, "sugar_level": sugar_level}
|
22 |
|
23 |
# Create Gradio interfaces for each of the APIs
|