Spaces:
Running
on
T4
Running
on
T4
cheesyFishes
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -253,4 +253,9 @@ This demo was built with [LlamaIndex](https://docs.llamaindex.ai) and [LlamaPars
|
|
253 |
)
|
254 |
|
255 |
if __name__ == "__main__":
|
256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
253 |
)
|
254 |
|
255 |
if __name__ == "__main__":
|
256 |
+
if os.getenv("SPACE_ID"):
|
257 |
+
# Running on HF Spaces
|
258 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, share=False)
|
259 |
+
else:
|
260 |
+
# Running locally
|
261 |
+
demo.launch()
|