Copopopopo commited on
Commit
6d7a8a0
·
verified ·
1 Parent(s): 7594dc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  import pandas as pd
3
  import json
4
  from HF_processor import FMEADataPipeline
 
5
 
6
  def process_files(fmea_excel, catalog_code, threshold):
7
  try:
@@ -9,7 +10,7 @@ def process_files(fmea_excel, catalog_code, threshold):
9
  return "Error: Both files must be provided."
10
 
11
  # Read JSON catalog profile
12
- json_path = 'Updated Catalog Profile.json'
13
  with open(json_path, 'r') as f:
14
  catalog_profile = json.load(f)
15
 
 
2
  import pandas as pd
3
  import json
4
  from HF_processor import FMEADataPipeline
5
+ from datasets import load_dataset
6
 
7
  def process_files(fmea_excel, catalog_code, threshold):
8
  try:
 
10
  return "Error: Both files must be provided."
11
 
12
  # Read JSON catalog profile
13
+ json_path = load_dataset('catalog_profile_updater',data_files='catalog_profile_updater/blob/main/Updated%20Catalog%20Profile.json')
14
  with open(json_path, 'r') as f:
15
  catalog_profile = json.load(f)
16