Marco310 commited on
Commit
8056363
·
1 Parent(s): 21b3112

Fix: fixed some bug for the new visualizers model

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. core/visualizers.py +1 -1
app.py CHANGED
@@ -381,7 +381,7 @@ class LifeFlowAI:
381
  def main():
382
  app = LifeFlowAI()
383
  demo = app.build_interface()
384
- demo.launch(server_name="0.0.0.0", server_port=8080, share=True, show_error=True)
385
  #7860
386
  if __name__ == "__main__":
387
  main()
 
381
  def main():
382
  app = LifeFlowAI()
383
  demo = app.build_interface()
384
+ demo.launch(server_name="0.0.0.0", server_port=7860, share=True, show_error=True)
385
  #7860
386
  if __name__ == "__main__":
387
  main()
core/visualizers.py CHANGED
@@ -137,7 +137,7 @@ def create_animated_map(structured_data=None):
137
  # 1. 初始化地圖 (預設台北)
138
  center_lat, center_lon = 25.033, 121.565
139
  m = folium.Map(location=[center_lat, center_lon], zoom_start=13, tiles="OpenStreetMap",
140
- height=750, # 這裡!設定高度 (單位是像素 px,也可以用 "100%" 但在 Gradio 有時會無效)
141
  width="100%"
142
  )
143
 
 
137
  # 1. 初始化地圖 (預設台北)
138
  center_lat, center_lon = 25.033, 121.565
139
  m = folium.Map(location=[center_lat, center_lon], zoom_start=13, tiles="OpenStreetMap",
140
+ height="100%", # 這裡!設定高度 (單位是像素 px,也可以用 "100%" 但在 Gradio 有時會無效)
141
  width="100%"
142
  )
143