cheesyFishes commited on
Commit
48bc7cc
·
verified ·
1 Parent(s): d9f893a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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
- demo.launch()
 
 
 
 
 
 
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()