mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-01-19 09:41:15 +08:00
移除pix2text依赖
This commit is contained in:
5
app.py
5
app.py
@@ -13,8 +13,6 @@ import time
|
||||
app = Flask(__name__)
|
||||
socketio = SocketIO(app, cors_allowed_origins="*", ping_timeout=30, ping_interval=5, max_http_buffer_size=50 * 1024 * 1024)
|
||||
|
||||
# Commented out due to model file issues
|
||||
# from pix2text import Pix2Text
|
||||
|
||||
def get_local_ip():
|
||||
try:
|
||||
@@ -67,8 +65,7 @@ def handle_connect():
|
||||
def handle_disconnect():
|
||||
print('Client disconnected')
|
||||
|
||||
# Commented out due to model file issues
|
||||
# p2t = Pix2Text()
|
||||
|
||||
|
||||
def stream_model_response(response_generator, sid):
|
||||
"""Stream model responses to the client"""
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
pix2text
|
||||
flask==3.1.0
|
||||
pyautogui==0.9.54
|
||||
Pillow==11.1.0
|
||||
|
||||
Reference in New Issue
Block a user