Skip to content

Commit

Permalink
Removed hotkey functionality, does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverpalonkorp committed Sep 11, 2023
1 parent c344b06 commit 548608c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 129 deletions.
8 changes: 5 additions & 3 deletions interpreter/hotkeys.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import threading
from pynput import keyboard
#import threading
#from pynput import keyboard

# Removed due to issues with pynput and automatic checks. Will revisit.

'''
class HotkeyHandler:
# Uses pynput.keyboard to listen for key presses. Calls a callback function if the key combination defined
# gets pressed. This works in the background as its own thread.
Expand Down Expand Up @@ -36,4 +38,4 @@ def start_key_listener(self):
def start(self):
# Start the listener thread in the background
self.listener_thread.start()
self.listener_thread.start()'''
4 changes: 2 additions & 2 deletions interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
- killian
"""

from interpreter.hotkeys import HotkeyHandler
#from interpreter.hotkeys import HotkeyHandler
from .cli import cli
from .utils import merge_deltas, parse_partial_json
from .message_block import MessageBlock
from .code_block import CodeBlock
from .code_interpreter import CodeInterpreter
from .get_hf_llm import get_hf_llm
from pynput import keyboard
#from pynput import keyboard

import os
import time
Expand Down
124 changes: 1 addition & 123 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ inquirer = "^3.1.3"
wget = "^3.2"
huggingface-hub = "^0.16.4"
litellm = "^0.1.578"
pynput = "^1.7.6"
[tool.poetry.dependencies.pyreadline3]
version = "^3.4.1"
markers = "sys_platform == 'win32'"
Expand Down

0 comments on commit 548608c

Please sign in to comment.