Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,34 +3,26 @@ from main import run_main
|
|
3 |
import gdown
|
4 |
import gradio as gr
|
5 |
|
6 |
-
|
7 |
-
|
8 |
download_url = f'https://drive.google.com/uc?id={json_url_id}'
|
9 |
output = 'secret_google_service_account.json'
|
10 |
gdown.download(download_url, output, quiet=False)
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
with gr.Blocks(title="Accountant automation",theme='nota-ai/theme') as demo:
|
19 |
|
20 |
with gr.Row():
|
21 |
with gr.Column(scale=6):
|
22 |
with gr.Row():
|
23 |
with gr.Column(scale=3):
|
24 |
-
source_folder_with_reciepts = gr.Textbox(
|
25 |
-
link_to_csv = gr.Textbox(
|
26 |
-
folder_to_save_processed_reciepts = gr.Textbox(
|
27 |
-
folder_to_save_reconciled_data = gr.Textbox(
|
28 |
-
name_output_file = gr.Textbox(
|
29 |
-
transaction_csv_path = gr.Textbox(
|
30 |
-
chat_submit_button = gr.Button(value="
|
31 |
|
32 |
with gr.Column(scale=6):
|
33 |
-
chat_output = gr.Markdown("Appuyez sur valider pour
|
34 |
|
35 |
|
36 |
fn_chat = run_main
|
|
|
3 |
import gdown
|
4 |
import gradio as gr
|
5 |
|
|
|
|
|
6 |
download_url = f'https://drive.google.com/uc?id={json_url_id}'
|
7 |
output = 'secret_google_service_account.json'
|
8 |
gdown.download(download_url, output, quiet=False)
|
9 |
|
10 |
+
with gr.Blocks(title="Accountant automation",theme='nota-ai/theme',css="footer {visibility: hidden}") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
with gr.Row():
|
13 |
with gr.Column(scale=6):
|
14 |
with gr.Row():
|
15 |
with gr.Column(scale=3):
|
16 |
+
source_folder_with_reciepts = gr.Textbox(label="Dossier contenant les factures", lines=1)
|
17 |
+
link_to_csv = gr.Textbox(label="Lien vers le relevé de compte en csv", lines=1, )
|
18 |
+
folder_to_save_processed_reciepts = gr.Textbox(label="Dossier où sauvegarder les factures", lines=1, )
|
19 |
+
folder_to_save_reconciled_data = gr.Textbox(label="Dossier où sauvegarder le tableau final", lines=1, )
|
20 |
+
name_output_file = gr.Textbox(label="Nom du fichier de tableau final", lines=1, )
|
21 |
+
transaction_csv_path = gr.Textbox(label="csv path", lines=1,visible=False )
|
22 |
+
chat_submit_button = gr.Button(value="Lancer ▶")
|
23 |
|
24 |
with gr.Column(scale=6):
|
25 |
+
chat_output = gr.Markdown("Appuyez sur valider pour lancer le processing")
|
26 |
|
27 |
|
28 |
fn_chat = run_main
|