Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from scraper import Scraper
|
4 |
-
import nest_asyncio
|
5 |
import asyncio
|
6 |
from playwright.async_api import async_playwright
|
7 |
from fastapi import FastAPI
|
8 |
import random
|
9 |
|
10 |
# Allow nested use of asyncio.run() in Jupyter
|
11 |
-
nest_asyncio.apply()
|
12 |
|
13 |
|
14 |
try: from pip._internal.operations import freeze
|
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from scraper import Scraper
|
4 |
+
#import nest_asyncio
|
5 |
import asyncio
|
6 |
from playwright.async_api import async_playwright
|
7 |
from fastapi import FastAPI
|
8 |
import random
|
9 |
|
10 |
# Allow nested use of asyncio.run() in Jupyter
|
11 |
+
#nest_asyncio.apply()
|
12 |
|
13 |
|
14 |
try: from pip._internal.operations import freeze
|