to dos
parent
72984069f8
commit
e8da68aa49
|
@ -9,6 +9,7 @@ import csv
|
||||||
import bs4
|
import bs4
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
import importlib
|
import importlib
|
||||||
|
#TODO Change the sys path to fit your system
|
||||||
sys.path.append("c:/Users/ketha/Code/Senior D") #This will need to be changed system to system
|
sys.path.append("c:/Users/ketha/Code/Senior D") #This will need to be changed system to system
|
||||||
AltTextHTML = importlib.import_module("alt-text.src.alttext.alttext").AltTextHTML
|
AltTextHTML = importlib.import_module("alt-text.src.alttext.alttext").AltTextHTML
|
||||||
PrivateGPT = importlib.import_module("alt-text.src.alttext.langengine.langengine").PrivateGPT
|
PrivateGPT = importlib.import_module("alt-text.src.alttext.langengine.langengine").PrivateGPT
|
||||||
|
@ -167,12 +168,13 @@ def automate_process(extr_folder : str):
|
||||||
|
|
||||||
generator.genAltTextV2(soup, book_id, filepath, book_path)
|
generator.genAltTextV2(soup, book_id, filepath, book_path)
|
||||||
|
|
||||||
# Use the parseFile method to parse the HTML file for the genAltText function
|
#TODO read below, I don't know if this functionality is built in already
|
||||||
#extra layer should: add an extra layer to iterate through the images tab,
|
# Use the parseFile method to parse the HTML file for the genAltText function
|
||||||
#find that image within the .html
|
#extra layer should: add an extra layer to iterate through the images tab,
|
||||||
#Go to alt-text generation where it will...
|
#find that image within the .html
|
||||||
#get the context
|
#Go to alt-text generation where it will...
|
||||||
#generate the alt-text for that image based on the context and other factors
|
#get the context
|
||||||
|
#generate the alt-text for that image based on the context and other factors
|
||||||
|
|
||||||
generator.generate_csv('test_benchmark.csv', generator.benchmark_records)
|
generator.generate_csv('test_benchmark.csv', generator.benchmark_records)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue