fix
Browse files
app.py
CHANGED
@@ -56,19 +56,17 @@ with gr.Blocks(fill_height=True) as demo:
|
|
56 |
print("Loading embedding model");
|
57 |
Embedder = None #SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
58 |
|
59 |
-
|
60 |
-
GradioApp = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False);
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
|
70 |
|
71 |
#uvicorn.run(GradioApp, port=7860, host="0.0.0.0")
|
72 |
-
|
73 |
-
demo.launch();
|
74 |
|
|
|
56 |
print("Loading embedding model");
|
57 |
Embedder = None #SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
58 |
|
59 |
+
# demo.run_startup_events()
|
60 |
+
# GradioApp = gr.mount_gradio_app(app, demo, path="/", ssr_mode=False);
|
61 |
|
62 |
+
demo.launch(
|
63 |
+
share=False,
|
64 |
+
debug=False,
|
65 |
+
server_port=7860,
|
66 |
+
server_name="0.0.0.0",
|
67 |
+
allowed_paths=[]
|
68 |
+
)
|
69 |
|
70 |
|
71 |
#uvicorn.run(GradioApp, port=7860, host="0.0.0.0")
|
|
|
|
|
72 |
|