Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept file as an Input #3

Closed
sankethgadadinni opened this issue Aug 8, 2023 · 3 comments
Closed

Accept file as an Input #3

sankethgadadinni opened this issue Aug 8, 2023 · 3 comments

Comments

@sankethgadadinni
Copy link

are you planning to accept files as an input?

@KillianLucas
Copy link
Collaborator

KillianLucas commented Aug 8, 2023

Hi @sankethgadadinni! Definitely, in fact on some operating systems like Mac you can already do this by dragging a file into your terminal. This will paste in the file or folder's absolute path, which is all Open Interpreter needs to work with it. We should add a video demo soon:

$: interpreter

> Hey can you resize this photo to 1000x1000?
  (try dragging a file in at this point, which pastes its absolute path on some systems)
  /Users/killianlucas/Desktop/photo.png

  Sure, I can help with that. Here's the plan:

  1. First, I will check if the required Python library PIL (Pillow) is installed on your system...

Related: #1 for a discussion of a UI that would support file dropping, conversation history, image display, etc. We'll need to do this to support operating systems that don't support dragging and dropping into terminal, or figure out how to use curses or dragon.

What OS do you use? It would be great if we knew which systems supported this behavior (I only know Mac does) then we could add that to the documentation.

@nirvor
Copy link
Contributor

nirvor commented Aug 9, 2023

It would be great if we knew which systems supported this behavior (I only know Mac does) then we could add that to the documentation.

I tested it (dragging a file into the interpreter chat CLI + see if the path gets pasted + if the interpreter finds the path and file) with

  • Ubuntu 23
  • Windows 11 CLI

--> Worked on both systems, too, without issues

@KillianLucas
Copy link
Collaborator

Thanks @nirvor! Just updated the documentation with a demo.

I think we can consider drag-and-drop to be a core/supported feature of Open Interpreter instead of specifying supported systems — Windows + Ubuntu + Mac is cross-platform enough for me. Let's make a note in the docs of it not working on any systems/terminals though, if we find them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants