Spaces:
Running
Running
[email protected]
commited on
Commit
·
ef365c3
1
Parent(s):
1cf26ef
Pre-complete form for Auto France Parts
Browse files- app.py +2 -2
- config.yaml +9 -9
- pages/form.py +2 -1
app.py
CHANGED
@@ -65,8 +65,8 @@ def main():
|
|
65 |
|
66 |
saved_documents = st.Page("pages/persistent_documents.py", title="Communs", icon="🗃️")
|
67 |
documents = st.Page("pages/documents.py", title="Vos documents", icon="📂")
|
68 |
-
prompt_system = st.Page("pages/prompt_system.py", title="Prompt système", icon="🖊️"
|
69 |
-
form = st.Page("pages/form.py", title="Paramètres", icon="📋")
|
70 |
chatbot = st.Page("pages/chatbot.py", title="Chatbot", icon="🤖")
|
71 |
|
72 |
pg = st.navigation(
|
|
|
65 |
|
66 |
saved_documents = st.Page("pages/persistent_documents.py", title="Communs", icon="🗃️")
|
67 |
documents = st.Page("pages/documents.py", title="Vos documents", icon="📂")
|
68 |
+
prompt_system = st.Page("pages/prompt_system.py", title="Prompt système", icon="🖊️")
|
69 |
+
form = st.Page("pages/form.py", title="Paramètres", icon="📋", default=True)
|
70 |
chatbot = st.Page("pages/chatbot.py", title="Chatbot", icon="🤖")
|
71 |
|
72 |
pg = st.navigation(
|
config.yaml
CHANGED
@@ -57,7 +57,7 @@ variables:
|
|
57 |
- label: "Nom de l'exploitation"
|
58 |
nature: ''
|
59 |
key: exploitation_name
|
60 |
-
value: ""
|
61 |
|
62 |
# - label: "Localisation"
|
63 |
# nature: 'selectbox'
|
@@ -68,7 +68,7 @@ variables:
|
|
68 |
- label: "Type d'activité"
|
69 |
nature: ''
|
70 |
key: type_activite
|
71 |
-
value:
|
72 |
|
73 |
# - label: "Spécificités et/ou Certifications"
|
74 |
# nature: 'multiselect'
|
@@ -79,12 +79,12 @@ variables:
|
|
79 |
- label: "Date de création de l'entreprise"
|
80 |
nature: 'date'
|
81 |
key: date_creation
|
82 |
-
value:
|
83 |
|
84 |
- label: "Chiffre d'affaires annuel (en €)"
|
85 |
nature: 'numeric'
|
86 |
key: ca_annuel
|
87 |
-
value:
|
88 |
|
89 |
- label: "EBE (Excédent Brut d'Exploitation, en €)"
|
90 |
nature: 'numeric'
|
@@ -99,12 +99,12 @@ variables:
|
|
99 |
- label: "Nombre de salarié"
|
100 |
nature: 'numeric'
|
101 |
key: nb_salaries
|
102 |
-
value:
|
103 |
|
104 |
- name: "Type de projet"
|
105 |
number: 2
|
106 |
fields:
|
107 |
-
- label: "Description du projet ou événement important pour l’entreprise
|
108 |
nature: 'text_area'
|
109 |
key: projet_description
|
110 |
value: ""
|
@@ -141,19 +141,19 @@ variables:
|
|
141 |
nature: 'multiselect'
|
142 |
key: recherche_geo
|
143 |
options: [ "Tous", "Départemental", "Régional", "National", "Européen" ]
|
144 |
-
value:
|
145 |
|
146 |
- label: "Type de subvention souhaitée"
|
147 |
nature: 'multiselect'
|
148 |
key: subvention_type
|
149 |
options: [ "Tous", "Avance − Prêts − Garanties", "Subvention", "Prise en charge des coûts et allègement des charges", "Autres" ]
|
150 |
-
value:
|
151 |
|
152 |
- label: "Thématique de l'aide"
|
153 |
nature: 'multiselect'
|
154 |
key: subvention_thematic
|
155 |
options: [ "Tous", "Crise énergétique", "France 2030", "Plan résilience" ]
|
156 |
-
value:
|
157 |
|
158 |
|
159 |
prompt_system: "
|
|
|
57 |
- label: "Nom de l'exploitation"
|
58 |
nature: ''
|
59 |
key: exploitation_name
|
60 |
+
value: "Auto France Parts"
|
61 |
|
62 |
# - label: "Localisation"
|
63 |
# nature: 'selectbox'
|
|
|
68 |
- label: "Type d'activité"
|
69 |
nature: ''
|
70 |
key: type_activite
|
71 |
+
value: "Commerce de gros d'équipements automobiles"
|
72 |
|
73 |
# - label: "Spécificités et/ou Certifications"
|
74 |
# nature: 'multiselect'
|
|
|
79 |
- label: "Date de création de l'entreprise"
|
80 |
nature: 'date'
|
81 |
key: date_creation
|
82 |
+
# value: "2011/09/20"
|
83 |
|
84 |
- label: "Chiffre d'affaires annuel (en €)"
|
85 |
nature: 'numeric'
|
86 |
key: ca_annuel
|
87 |
+
value: 72000000
|
88 |
|
89 |
- label: "EBE (Excédent Brut d'Exploitation, en €)"
|
90 |
nature: 'numeric'
|
|
|
99 |
- label: "Nombre de salarié"
|
100 |
nature: 'numeric'
|
101 |
key: nb_salaries
|
102 |
+
value: 20
|
103 |
|
104 |
- name: "Type de projet"
|
105 |
number: 2
|
106 |
fields:
|
107 |
+
- label: "Description du projet ou événement important pour l’entreprise"
|
108 |
nature: 'text_area'
|
109 |
key: projet_description
|
110 |
value: ""
|
|
|
141 |
nature: 'multiselect'
|
142 |
key: recherche_geo
|
143 |
options: [ "Tous", "Départemental", "Régional", "National", "Européen" ]
|
144 |
+
value: "Tous"
|
145 |
|
146 |
- label: "Type de subvention souhaitée"
|
147 |
nature: 'multiselect'
|
148 |
key: subvention_type
|
149 |
options: [ "Tous", "Avance − Prêts − Garanties", "Subvention", "Prise en charge des coûts et allègement des charges", "Autres" ]
|
150 |
+
value: "Tous"
|
151 |
|
152 |
- label: "Thématique de l'aide"
|
153 |
nature: 'multiselect'
|
154 |
key: subvention_thematic
|
155 |
options: [ "Tous", "Crise énergétique", "France 2030", "Plan résilience" ]
|
156 |
+
value: "Tous"
|
157 |
|
158 |
|
159 |
prompt_system: "
|
pages/form.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
from util import getYamlConfig
|
3 |
|
@@ -77,7 +78,7 @@ def display_field(field):
|
|
77 |
elif field['nature'] == 'date':
|
78 |
st.date_input(
|
79 |
field['label'],
|
80 |
-
value=
|
81 |
key=key,
|
82 |
on_change=update_session_state,
|
83 |
args=(key,)
|
|
|
1 |
+
import datetime
|
2 |
import streamlit as st
|
3 |
from util import getYamlConfig
|
4 |
|
|
|
78 |
elif field['nature'] == 'date':
|
79 |
st.date_input(
|
80 |
field['label'],
|
81 |
+
value=datetime.date.fromisoformat("2011-09-20"),
|
82 |
key=key,
|
83 |
on_change=update_session_state,
|
84 |
args=(key,)
|