James Frecheville
commited on
Commit
·
6dd1eb7
1
Parent(s):
0b142d7
Update dependencies and add more environment variables to prevent browser installation
Browse files- app.py +8 -2
- requirements.txt +2 -1
app.py
CHANGED
@@ -7,9 +7,13 @@ current_dir = Path(__file__).parent.absolute()
|
|
7 |
if str(current_dir) not in sys.path:
|
8 |
sys.path.append(str(current_dir))
|
9 |
|
10 |
-
# Disable browser installation
|
11 |
os.environ["GRADIO_ANALYTICS_ENABLED"] = "false"
|
12 |
os.environ["GRADIO_BROWSER_INSTALLED"] = "true"
|
|
|
|
|
|
|
|
|
13 |
|
14 |
from owl.webapp import create_ui
|
15 |
|
@@ -22,5 +26,7 @@ if __name__ == "__main__":
|
|
22 |
server_name="0.0.0.0",
|
23 |
server_port=7861,
|
24 |
share=False,
|
25 |
-
show_error=True
|
|
|
|
|
26 |
)
|
|
|
7 |
if str(current_dir) not in sys.path:
|
8 |
sys.path.append(str(current_dir))
|
9 |
|
10 |
+
# Disable browser installation and analytics
|
11 |
os.environ["GRADIO_ANALYTICS_ENABLED"] = "false"
|
12 |
os.environ["GRADIO_BROWSER_INSTALLED"] = "true"
|
13 |
+
os.environ["GRADIO_SERVER_NAME"] = "0.0.0.0"
|
14 |
+
os.environ["GRADIO_SERVER_PORT"] = "7861"
|
15 |
+
os.environ["GRADIO_ALLOW_FLAGGING"] = "false"
|
16 |
+
os.environ["GRADIO_QUEUE_ENABLED"] = "false"
|
17 |
|
18 |
from owl.webapp import create_ui
|
19 |
|
|
|
26 |
server_name="0.0.0.0",
|
27 |
server_port=7861,
|
28 |
share=False,
|
29 |
+
show_error=True,
|
30 |
+
favicon_path=None,
|
31 |
+
allowed_paths=None
|
32 |
)
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio
|
2 |
docx2markdown>=0.1.1
|
3 |
chunkr-ai>=0.0.41
|
4 |
camel-ai[all]==0.2.36
|
@@ -13,3 +13,4 @@ colorama>=0.4.6
|
|
13 |
psutil>=5.9.8
|
14 |
docstring-parser>=0.15
|
15 |
jsonschema>=4.0.0
|
|
|
|
1 |
+
gradio==3.50.2
|
2 |
docx2markdown>=0.1.1
|
3 |
chunkr-ai>=0.0.41
|
4 |
camel-ai[all]==0.2.36
|
|
|
13 |
psutil>=5.9.8
|
14 |
docstring-parser>=0.15
|
15 |
jsonschema>=4.0.0
|
16 |
+
playwright==1.41.2
|