Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import plotly.graph_objects as go
|
|
|
3 |
|
4 |
# Функция для создания спидометра
|
5 |
def create_gauge(value):
|
@@ -32,13 +33,13 @@ def create_gauge(value):
|
|
32 |
|
33 |
# Значения для спидометров
|
34 |
def get_success_forecast_1():
|
35 |
-
return create_gauge(
|
36 |
|
37 |
def get_success_forecast_2():
|
38 |
-
return create_gauge(
|
39 |
|
40 |
def get_success_forecast_3():
|
41 |
-
return create_gauge(
|
42 |
|
43 |
# Функция для смены вкладки
|
44 |
def change_tab(id):
|
|
|
1 |
import gradio as gr
|
2 |
import plotly.graph_objects as go
|
3 |
+
import random
|
4 |
|
5 |
# Функция для создания спидометра
|
6 |
def create_gauge(value):
|
|
|
33 |
|
34 |
# Значения для спидометров
|
35 |
def get_success_forecast_1():
|
36 |
+
return create_gauge(random.randint(60, 90))
|
37 |
|
38 |
def get_success_forecast_2():
|
39 |
+
return create_gauge(random.randint(60, 90))
|
40 |
|
41 |
def get_success_forecast_3():
|
42 |
+
return create_gauge(random.randint(60, 90))
|
43 |
|
44 |
# Функция для смены вкладки
|
45 |
def change_tab(id):
|