Giter Club home page Giter Club logo

liftoff's People

Contributors

steven-tey avatar tameyer41 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

liftoff's Issues

Build Failed Command "npm run build" exited with 1

any suggestions?

Build Failed
Command "npm run build" exited with 1

Running build in Washington, D.C., USA (East) – iad1 (Hive)

17:27:31.233 | Cloning completed: 1.440s
17:27:34.040 | Restored build cache
17:27:34.109 | Running "vercel build"
17:27:34.616 | Vercel CLI 32.2.0
17:27:34.895 | Installing dependencies...
17:27:36.559 |  
17:27:36.560 | changed 1 package in 1s
17:27:36.560 |  
17:27:36.560 | 139 packages are looking for funding
17:27:36.560 | run npm fund for details
17:27:36.570 | Detected Next.js version: 13.4.4
17:27:36.574 | Detected package-lock.json generated by npm 7+...
17:27:36.574 | Running "npm run build"
17:27:36.990 |  
17:27:36.991 | > [email protected] build
17:27:36.991 | > next build
17:27:36.991 |  
17:27:37.508 | - info Creating an optimized production build...
17:27:42.617 | Failed to compile.
17:27:42.617 |  
17:27:42.618 | ./pages/demo.tsx
17:27:42.618 | Error:
17:27:42.618 | x Unexpected token AnimatePresence. Expected jsx identifier
17:27:42.618 | ,-[/vercel/path0/pages/demo.tsx:302:1]
17:27:42.618 | 302 | };
17:27:42.618 | 303 |
17:27:42.618 | 304 | return (
17:27:42.618 | 305 |
17:27:42.618 | : ^^^^^^^^^^^^^^^
17:27:42.618 | 306 | {step === 3 ? (
17:27:42.618 | 307 |


17:27:42.619 | 308 |


17:27:42.619 | ---- 17:27:42.619 |   17:27:42.619 | Caused by: 17:27:42.619 | Syntax Error 17:27:42.619 |   17:27:42.619 | ./app/layout.tsx 17:27:42.619 | Error: 17:27:42.619 | x Expected ',', got 'SueñoScholar' 17:27:42.619 | ,-[/vercel/path0/app/layout.tsx:15:1] 17:27:42.619 | 15 \| }, 17:27:42.619 | 16 \| twitter: { 17:27:42.619 | 17 \| card: "summary_large_image", 17:27:42.619 | : ^^^^^^^^^^^^^ 17:27:42.619 | 19 \| description: 17:27:42.620 | ----
17:27:42.620 |  
17:27:42.620 | Caused by:
17:27:42.620 | Syntax Error
17:27:42.620 |  
17:27:42.620 | Import trace for requested module:
17:27:42.620 | ./app/layout.tsx
17:27:42.620 |  
17:27:42.622 |  
17:27:42.622 | > Build failed because of webpack errors
17:27:42.659 | Error: Command "npm run build" exited with 1

Magic Prompt

After saying "I wish to be auditioned by a human", here is the result :
Capture d’écran, le 2024-01-17 à 00 30 45

server error - Error: ENOENT: no such file or directory

It seems that the audio recording is not created; or at least, not on my device when running the test. After pressing the 'Process transcript' button, returns the following inside the output:

- event compiled successfully in 181 ms (628 modules)
E:\tmp\6f9264e9686cd181d12314301.mp3
server error [Error: ENOENT: no such file or directory, open 'E:\tmp\6f9264e9686cd181d12314301.mp3'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'E:\\tmp\\6f9264e9686cd181d12314301.mp3',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [Function: httpAdapter],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    validateStatus: [Function: validateStatus],
    headers: {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'multipart/form-data; boundary=--------------------------504996471978997678364746',
      'User-Agent': 'OpenAI/NodeJS/3.2.1',
      Authorization: 'Bearer sk-#############################'
    },
    method: 'post',
    data: FormData {
      _overheadLength: 275,
      _valueLength: 9,
      _valuesToMeasure: [Array],
      writable: false,
      readable: true,
      dataSize: 0,
      maxDataSize: 2097152,
      pauseStreams: true,
      _released: true,
      _streams: [],
      _currentStream: null,
      _insideLoop: false,
      _pendingNext: false,
      _boundary: '--------------------------504996471978997678364746',
      _events: [Object: null prototype],
      _eventsCount: 1
    },
    url: 'https://api.openai.com/v1/audio/transcriptions'
  },
  request: <ref *1> Writable {
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: false,
      decodeStrings: true,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 0,
      constructed: true,
      prefinished: false,
      errorEmitted: false,
      emitClose: true,
      autoDestroy: true,
      errored: null,
      closed: false,
      closeEmitted: false,
      [Symbol(kOnFinished)]: []
    },
    _events: [Object: null prototype] {
      response: [Function: handleResponse],
      error: [Function: handleRequestError],
      socket: [Function: handleRequestSocket]
    },
    _eventsCount: 3,
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: 10485760,
      protocol: 'https:',
      path: '/v1/audio/transcriptions',
      method: 'POST',
      headers: [Object],
      agent: undefined,
      agents: [Object],
      auth: undefined,
      hostname: 'api.openai.com',
      port: null,
      nativeProtocols: [Object],
      pathname: '/v1/audio/transcriptions'
    },
    _ended: false,
    _ending: false,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 169,
    _requestBodyBuffers: [ [Object] ],
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: true,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: null,
      _hasBody: true,
      _trailer: '',
      finished: false,
      _headerSent: true,
      _closed: false,
      socket: [TLSSocket],
      _header: 'POST /v1/audio/transcriptions HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: multipart/form-data; boundary=--------------------------504996471978997678364746\r\n' +
        'User-Agent: OpenAI/NodeJS/3.2.1\r\n' +
        'Authorization: Bearer sk-###############\r\n' +
        'Host: api.openai.com\r\n' +
        'Connection: close\r\n' +
        'Transfer-Encoding: chunked\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: '/v1/audio/transcriptions',
      _ended: false,
      res: null,
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: [HTTPParser],
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'api.openai.com',
      protocol: 'https:',
      _redirectable: [Circular *1],
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kUniqueHeaders)]: null
    },
    _currentUrl: 'https://api.openai.com/v1/audio/transcriptions',
    [Symbol(kCapture)]: false
  },
  response: undefined,
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

I do see inside transcribe.ts:

// Here, we create a temporary file to store the audio file using Vercel's tmp directory
  // As we compressed the file and are limiting recordings to 2.5 minutes, we won't run into trouble with storage capacity
  const fData = await new Promise<{ fields: any; files: any }>(
    (resolve, reject) => {
      const form = new IncomingForm({
        multiples: false,
        uploadDir: "/tmp",
        keepExtensions: true,
      });
      form.parse(req, (err, fields, files) => {
        if (err) return reject(err);
        resolve({ fields, files });
      });
    }
  );

The comments mention Vercel's tmp directory, how to adjust this for other storage, i.e.: local, when testing?

encounter "Too Many Requests Error" when calling api.openai.com/v1/audio/transcriptions

Nice Project~!
I have just tried it on vercel. after answering the question and click the "Process Transcript" button, I encountered an upload failed error, because of "call openai 429 (Too Many Requests) ".

I am using a free trail openAI account now, do I need a paid account?

logs from vercel console :

response: {
status: 429,
statusText: 'Too Many Requests',
headers: {
date: 'Mon, 12 Jun 2023 12:28:13 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '206',
connection: 'close',
vary: 'Origin',
'x-request-id': 'efa2da802323d516a37d43b9e4ac252a',
'strict-transport-security': 'max-age=15724800; includeSubDomains',
'cf-cache-status': 'DYNAMIC',
server: 'cloudflare',
'cf-ray': '7d6217a82de15a15-IAD',
'alt-svc': 'h3=":443"; ma=86400'
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
data: [FormData],
url: 'https://api.openai.com/v1/audio/transcriptions'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: true,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v1/audio/transcriptions HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: multipart/form-data; boundary=--------------------------893667726780861988180487\r\n' +
'User-Agent: OpenAI/NodeJS/3.2.1\r\n' +
'Authorization: KEY\r\n' +
'x-vercel-id: kix1::pmkp9-1686572893051-93b7a8097553\r\n' +
'Host: api.openai.com\r\n' +
'Connection: close\r\n' +
'Transfer-Encoding: chunked\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/v1/audio/transcriptions',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'api.openai.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: true,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kUniqueHeaders)]: null
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.