Spaces:
Paused
Paused
Update app.py
Browse files490 unmodified lines491492493494495496497150 unmodified lines648649650651652653490 unmodified lines# if __name__ == "__main__":# app.run(host='0.0.0.0', port=7860)from http.server import HTTPServer, SimpleHTTPRequestHandler# from pyngrok import ngrokimport osfrom mistralai.client import MistralClientfrom mistralai.models.chat_completion import ChatMessage150 unmodified linesif __name__ == '__main__':port = 7860server = HTTPServer(('', port), MyHandler)# public_url = ngrok.connect(port).public_url# print(f" * ngrok tunnel \"{public_url}\" -> \"http://127.0.0.1:{port}\"")server.serve_forever()490 unmodified lines491492493494495496497150 unmodified lines648649650651652653490 unmodified lines# if __name__ == "__main__":# app.run(host='0.0.0.0', port=7860)from http.server import HTTPServer, SimpleHTTPRequestHandlerfrom pyngrok import ngrokimport osfrom mistralai.client import MistralClientfrom mistralai.models.chat_completion import ChatMessage150 unmodified linesif __name__ == '__main__':port = 7860server = HTTPServer(('', port), MyHandler)public_url = ngrok.connect(port).public_urlprint(f" * ngrok tunnel \"{public_url}\" -> \"http://127.0.0.1:{port}\"")server.serve_forever()
app.py+3-3