MrFeelgoood commited on
Commit
1464729
·
1 Parent(s): 4ebe9a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -116,8 +116,8 @@ def get_text_and_values(text, key_list):
116
 
117
  def get_useful_text(dictionary):
118
  keysList = list(dictionary.keys())
119
- tes = ('\n'.join(keysList))
120
- return tes
121
 
122
  def get_values(dictionary):
123
  pr = list(dictionary.values())
@@ -264,6 +264,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
264
  gr.Markdown(
265
  '''
266
  # PDF Mq Extractor
 
267
  ''')
268
  with gr.Tab("Extractor"):
269
  with gr.Row():
@@ -284,9 +285,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
284
 
285
  with gr.Row():
286
 
 
287
  values_output = gr.components.Textbox(label="Area Values")
288
  total_output = gr.components.Textbox(label="Total")
289
- text_output = gr.components.Textbox(label="Ref. Text")
290
  with gr.Row():
291
  extract_button = gr.Button("Extract")
292
 
 
116
 
117
  def get_useful_text(dictionary):
118
  keysList = list(dictionary.keys())
119
+ tx = ('\n------------------------\n'.join(keysList))
120
+ return tx
121
 
122
  def get_values(dictionary):
123
  pr = list(dictionary.values())
 
264
  gr.Markdown(
265
  '''
266
  # PDF Mq Extractor
267
+ Demo for ITAL-IA
268
  ''')
269
  with gr.Tab("Extractor"):
270
  with gr.Row():
 
285
 
286
  with gr.Row():
287
 
288
+ text_output = gr.components.Textbox(label="Ref. Text")
289
  values_output = gr.components.Textbox(label="Area Values")
290
  total_output = gr.components.Textbox(label="Total")
291
+
292
  with gr.Row():
293
  extract_button = gr.Button("Extract")
294