Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -491,7 +491,7 @@
|
|
491 |
# if __name__ == "__main__":
|
492 |
# app.run(host='0.0.0.0', port=7860)
|
493 |
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
494 |
-
from pyngrok import ngrok
|
495 |
import os
|
496 |
from mistralai.client import MistralClient
|
497 |
from mistralai.models.chat_completion import ChatMessage
|
@@ -648,6 +648,6 @@ class MyHandler(SimpleHTTPRequestHandler):
|
|
648 |
if __name__ == '__main__':
|
649 |
port = 7860
|
650 |
server = HTTPServer(('', port), MyHandler)
|
651 |
-
public_url = ngrok.connect(port).public_url
|
652 |
-
print(f" * ngrok tunnel \"{public_url}\" -> \"http://127.0.0.1:{port}\"")
|
653 |
server.serve_forever()
|
|
|
491 |
# if __name__ == "__main__":
|
492 |
# app.run(host='0.0.0.0', port=7860)
|
493 |
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
494 |
+
# from pyngrok import ngrok
|
495 |
import os
|
496 |
from mistralai.client import MistralClient
|
497 |
from mistralai.models.chat_completion import ChatMessage
|
|
|
648 |
if __name__ == '__main__':
|
649 |
port = 7860
|
650 |
server = HTTPServer(('', port), MyHandler)
|
651 |
+
# public_url = ngrok.connect(port).public_url
|
652 |
+
# print(f" * ngrok tunnel \"{public_url}\" -> \"http://127.0.0.1:{port}\"")
|
653 |
server.serve_forever()
|