acecalisto3 commited on
Commit
ae8b15a
·
verified ·
1 Parent(s): 8aaff74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -2
app.py CHANGED
@@ -8,21 +8,24 @@ import csv
8
  import threading
9
  import re
10
  import unittest
11
- from dotenv import load_dotenv
12
  from urllib.parse import urlparse
13
  import pandas as pd
14
  from selenium import webdriver
15
  from selenium.webdriver.chrome.service import Service
 
16
  from selenium.webdriver.chrome.options import Options
17
  from selenium.webdriver.common.by import By
18
- from selenium.webdriver.support.ui import WebDriverWait
 
19
  from selenium.webdriver.support import expected_conditions as EC
20
  from selenium.common.exceptions import (
21
  TimeoutException,
 
22
  NoSuchElementException,
23
  StaleElementReferenceException,
24
  )
25
  from webdriver_manager.chrome import ChromeDriverManager
 
26
  from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
27
  import gradio as gr
28
  import xml.etree.ElementTree as ET
@@ -31,6 +34,17 @@ import mysql.connector
31
  from mysql.connector import pooling
32
  import nltk
33
  from huggingface_hub import login
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  # Initialize NLTK resources (you may need to download these)
36
  nltk.download('punkt')
 
8
  import threading
9
  import re
10
  import unittest
 
11
  from urllib.parse import urlparse
12
  import pandas as pd
13
  from selenium import webdriver
14
  from selenium.webdriver.chrome.service import Service
15
+
16
  from selenium.webdriver.chrome.options import Options
17
  from selenium.webdriver.common.by import By
18
+ from selenium.webdriver.support.ui  
19
+ import WebDriverWait
20
  from selenium.webdriver.support import expected_conditions as EC
21
  from selenium.common.exceptions import (
22
  TimeoutException,
23
+
24
  NoSuchElementException,
25
  StaleElementReferenceException,
26
  )
27
  from webdriver_manager.chrome import ChromeDriverManager
28
+
29
  from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
30
  import gradio as gr
31
  import xml.etree.ElementTree as ET
 
34
  from mysql.connector import pooling
35
  import nltk
36
  from huggingface_hub import login
37
+ from dotenv import load_dotenv
38
+
39
+ # Initialize NLTK resources (you may need to download these)
40
+ nltk.download('punkt')
41
+ nltk.download('averaged_perceptron_tagger')
42
+ nltk.download('maxent_ne_chunker')
43
+ nltk.download('words')
44
+
45
+
46
+ st.title("CEEMEESEEK with Model Selection")
47
+
48
 
49
  # Initialize NLTK resources (you may need to download these)
50
  nltk.download('punkt')