Spaces:
Running
Running
Commit
•
65351e7
1
Parent(s):
094b5e7
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,15 @@ import gradio as gr
|
|
7 |
import uuid
|
8 |
from typing import Optional
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
def get_json_data(url):
|
11 |
api_url = f"https://civitai.com/api/v1/models/{url.split('/')[4]}"
|
12 |
try:
|
|
|
7 |
import uuid
|
8 |
from typing import Optional
|
9 |
|
10 |
+
from selenium import webdriver
|
11 |
+
from webdriver_manager.chrome import ChromeDriverManager
|
12 |
+
from selenium.webdriver.common.by import By
|
13 |
+
from selenium.webdriver.support.ui import WebDriverWait
|
14 |
+
from selenium.webdriver.support import expected_conditions as EC
|
15 |
+
|
16 |
+
driver = webdriver.Chrome(ChromeDriverManager().install())
|
17 |
+
|
18 |
+
|
19 |
def get_json_data(url):
|
20 |
api_url = f"https://civitai.com/api/v1/models/{url.split('/')[4]}"
|
21 |
try:
|