This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| def mais(): | |
| ... | |
| if __name__ == "__main__": | |
| main() | |
| os.execl(sys.executable, sys.executable, *sys.argv) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from flask import Flask, render_template, request | |
| from werkzeug.utils import secure_filename | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def render_file(): | |
| return render_template('upload.html') | |
| @app.route('/fileUpload', methods = ['GET', 'POST']) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"> | |
| </head> | |
| <body> | |
| <div style="width:80%;text-align:center;margin:30px auto;"> | |
| <form action = "http://192.168.0.112:8000/fileUpload" method = "POST" enctype = "multipart/form-data"> | |
| <input style="width:80%;padding-bottom:20px;height:22%" multiple="multiple" type = "file" name = "filename[]" /> | |
| <input style="width:80%;height:10%" type = "submit" /> | |
| </form> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: '3.3' | |
| services: | |
| webserver: | |
| # dockerfile ์ ์คํํ๊ฒ ๋ค๋ . ๋ง์ฝ ํ์ ํด๋ ์์ ์๋ค๋ฉด ํด๋๊ฒฝ๋ก ์จ์ค ๊ฒ | |
| build: . | |
| # docker port ๋ 80 localhost port ๋ 9001 ์ฌ์ฉ ํ๊ฒ ๋ค๋ ์๋ฏธ | |
| ports: | |
| - "9001:80" | |
| links: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import plotly.graph_objects as go | |
| import dash | |
| import pymysql | |
| import dash_core_components as dcc | |
| import dash_html_components as html | |
| # DB connect | |
| def db_con(): | |
| db = pymysql.connect( | |
| host='localhost', |