Adr740 commited on
Commit
a990d75
·
verified ·
1 Parent(s): c2c4247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -17
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(placeholder="Dossier contenant les factures", lines=1)
25
- link_to_csv = gr.Textbox(placeholder="Lien vers le relevé de compte en csv", lines=1, )
26
- folder_to_save_processed_reciepts = gr.Textbox(placeholder="Dossier où sauvegarder les factures", lines=1, )
27
- folder_to_save_reconciled_data = gr.Textbox(placeholder="Dossier où sauvegarder le tableau final", lines=1, )
28
- name_output_file = gr.Textbox(placeholder="Nom du fichier de tableau final", lines=1, )
29
- transaction_csv_path = gr.Textbox(placeholder="Company Name", lines=1, )
30
- chat_submit_button = gr.Button(value="Submit ▶")
31
 
32
  with gr.Column(scale=6):
33
- chat_output = gr.Markdown("Appuyez sur valider pour lance le processing")
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