Skip to content

Commit

Permalink
fix: use LOCAL model by default
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 2, 2024
1 parent 44f7627 commit c6a5c24
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 42 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ if you want to run screenpipe in debug mode to show more logs in terminal:
```bash
screenpipe --debug
```
by default screenpipe is using deepgram nova-t text-to-audio model via cloud api. To use whisper-tiny that runs LOCALLY you should add this flag:
by default screenpipe is using whisper-tiny that runs LOCALLY to get better quality or lower compute you can use cloud model (we use Deepgram) via cloud api:
```bash
screenpipe --cloud-audio-off
screenpipe --cloud-audio-on
```
by default screenpipe is using unstructured.io for screen capture OCR processing via cloud api. To use tesseract that runs LOCALLY you should add this flag:
by default screenpipe is using a local model for screen capture OCR processing to use the cloud (through unstructured.io) for better performance use this flag:
```bash
screenpipe --cloud-ocr-off
screenpipe --cloud-ocr-on
```

you can combine multiple flags if needed
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["notification:default","path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","shell:default","shell:allow-open","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open","fs:default","fs:allow-read-file","fs:allow-watch","fs:default","fs:allow-read-file","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-watch","fs:allow-read-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPDATA/*"},{"path":"$APPDATA/**"},{"path":"$APPCONFIG/*"},{"path":"$RESOURCE/*"},{"path":"$RESOURCE/.screenpipe/*"},{"path":"$HOME/*"},{"path":"$HOME/.screenpipe/*"},{"path":"$HOME/.screenpipe/*"},{"path":"$APP/*"}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default","shell:default","dialog:default","updater:default"]}}
{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["notification:default","path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","shell:default","shell:allow-open","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open","fs:default","fs:allow-read-file","fs:allow-watch","fs:default","fs:allow-read-file","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-watch","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA/*"},{"path":"$APPLOCALDATA/**"},{"path":"$APPDATA/*"},{"path":"$APPDATA/**"},{"path":"$APPCONFIG/*"},{"path":"$RESOURCE/*"},{"path":"$RESOURCE/.screenpipe/*"},{"path":"$HOME/*"},{"path":"$HOME/.screenpipe/*"},{"path":"$HOME/.screenpipe/*"},{"path":"$APP/*"}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default","shell:default","dialog:default","updater:default"]}}
Original file line number Diff line number Diff line change
Expand Up @@ -6449,13 +6449,6 @@
"window:allow-set-size"
]
},
{
"description": "window:allow-set-size-constraints -> Enables the set_size_constraints command without any pre-configured scope.",
"type": "string",
"enum": [
"window:allow-set-size-constraints"
]
},
{
"description": "window:allow-set-skip-taskbar -> Enables the set_skip_taskbar command without any pre-configured scope.",
"type": "string",
Expand Down Expand Up @@ -6904,13 +6897,6 @@
"window:deny-set-size"
]
},
{
"description": "window:deny-set-size-constraints -> Denies the set_size_constraints command without any pre-configured scope.",
"type": "string",
"enum": [
"window:deny-set-size-constraints"
]
},
{
"description": "window:deny-set-skip-taskbar -> Denies the set_skip_taskbar command without any pre-configured scope.",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6449,13 +6449,6 @@
"window:allow-set-size"
]
},
{
"description": "window:allow-set-size-constraints -> Enables the set_size_constraints command without any pre-configured scope.",
"type": "string",
"enum": [
"window:allow-set-size-constraints"
]
},
{
"description": "window:allow-set-skip-taskbar -> Enables the set_skip_taskbar command without any pre-configured scope.",
"type": "string",
Expand Down Expand Up @@ -6904,13 +6897,6 @@
"window:deny-set-size"
]
},
{
"description": "window:deny-set-size-constraints -> Denies the set_size_constraints command without any pre-configured scope.",
"type": "string",
"enum": [
"window:deny-set-size-constraints"
]
},
{
"description": "window:deny-set-skip-taskbar -> Denies the set_skip_taskbar command without any pre-configured scope.",
"type": "string",
Expand Down
16 changes: 8 additions & 8 deletions screenpipe-server/src/bin/screenpipe-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ struct Cli {
#[arg(long, default_value_t = false)]
save_text_files: bool,

/// Disable cloud audio processing
#[arg(long, default_value_t = false)]
cloud_audio_off: bool,
/// Enable cloud audio processing
#[arg(long, default_value_t = true)]
cloud_audio_on: bool,

/// Disable cloud OCR processing
#[arg(long, default_value_t = false)]
cloud_ocr_off: bool,
/// Enable cloud OCR processing
#[arg(long, default_value_t = true)]
cloud_ocr_on: bool,
}

fn get_base_dir(custom_path: Option<String>) -> anyhow::Result<PathBuf> {
Expand Down Expand Up @@ -300,8 +300,8 @@ async fn main() -> anyhow::Result<()> {
vision_control,
audio_devices_control,
cli.save_text_files,
!cli.cloud_audio_off, // Pass the cloud_audio flag
!cli.cloud_ocr_off, // Pass the cloud_ocr flag
cli.cloud_audio_on, // Pass the cloud_audio flag
cli.cloud_ocr_on, // Pass the cloud_ocr flag
)
.await;

Expand Down

0 comments on commit c6a5c24

Please sign in to comment.