This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from torch import nn | |
from torch.utils.data import DataLoader, Dataset | |
class MyModel(nn.Module): | |
def __init__(self): | |
super().__init__() | |
def forward(self, x): | |
return x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--uc-toolbar-height: 32px; | |
} | |
:root:not([uidensity="compact"]) { | |
--uc-toolbar-height: 34px; | |
} | |
#TabsToolbar > * { | |
visibility: collapse !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Example of how to synthesize speech using the Coqui Studio API. | |
Streams the download/playback of the audio. | |
Usage: | |
$ COQUI_API_TOKEN="put your API token here" python coqui_api_stream.py --text "Hi there!" | |
To specify the voice to use, pass eg: `--voice 98d4af7d-aca0-4a70-a26e-4ca59023a248` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
import argparse | |
import json | |
import os | |
from requests_toolbelt.multipart.encoder import MultipartEncoder | |
try: | |
API_TOKEN = os.environ["COQUI_API_TOKEN"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
#define LED_PIN 13 | |
#define NUM_LEDS 54 | |
#define BRIGHTNESS 64 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER GRB | |
CRGB leds[NUM_LEDS]; | |
#define UPDATES_PER_SECOND 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client ID project/deepspeech/worker/macos-heavy-b-1 does not have sufficient scopes and is missing the following scopes: | |
``` | |
auth:websocktunnel-token:taskcluster-net/proj-deepspeech.ds-macos-heavy-b-1.60099 | |
``` | |
This request requires the client to satisfy the following scope expression: | |
``` | |
auth:websocktunnel-token:taskcluster-net/proj-deepspeech.ds-macos-heavy-b-1.60099 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client ID project/deepspeech/worker/macos-heavy-b-1 does not have sufficient scopes and is missing the following scopes: | |
``` | |
auth:websocktunnel-token:taskcluster-net/proj-deepspeech.ds-macos-heavy-b-1.60099 | |
``` | |
This request requires the client to satisfy the following scope expression: | |
``` | |
auth:websocktunnel-token:taskcluster-net/proj-deepspeech.ds-macos-heavy-b-1.60099 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
from __future__ import absolute_import, division, print_function | |
import argparse | |
import itertools | |
import tempfile | |
import os | |
import shlex | |
import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import deepspeech as ds | |
import numpy as np | |
import shlex | |
import subprocess | |
import sys | |
parser = argparse.ArgumentParser(description='DeepSpeech speech-to-text from microphone') | |
parser.add_argument('--model', required=True, | |
help='Path to the model (protocol buffer binary file)') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/jobs.js b/src/jobs.js | |
index 6ea979e..fbbed59 100644 | |
--- a/src/jobs.js | |
+++ b/src/jobs.js | |
@@ -554,7 +554,11 @@ exports.initApp = function(app) { | |
if (groupsModule.canAccessJob(req.user, dbjob)) { | |
let jobdir = _getJobDir(dbjob) | |
res.status(200).type('tar.gz') | |
- tar.pack(jobdir).pipe(zlib.createGzip()).pipe(res) | |
+ tar.pack(jobdir, { |
NewerOlder