jcockhren commited on
Commit
6fac8d4
1 Parent(s): 2da21c3

remove numpy and added requests

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -1,6 +1,6 @@
1
- import numpy as np
2
  import gradio as gr
3
  import os
 
4
 
5
  API_TOKEN = os.getenv('HF_API_TOKEN')
6
 
@@ -9,16 +9,6 @@ PROVIDERMODEL = {
9
  'facebook': 'facebook/wav2vec2-base-960h',
10
  }
11
 
12
- def sepia(input_img):
13
- sepia_filter = np.array([
14
- [0.393, 0.769, 0.189],
15
- [0.349, 0.686, 0.168],
16
- [0.272, 0.534, 0.131]
17
- ])
18
- sepia_img = input_img.dot(sepia_filter.T)
19
- sepia_img /= sepia_img.max()
20
- return sepia_img
21
-
22
 
23
  def query(filename, provider='openai'):
24
  with open(filename, "rb") as f:
 
 
1
  import gradio as gr
2
  import os
3
+ import requests
4
 
5
  API_TOKEN = os.getenv('HF_API_TOKEN')
6
 
 
9
  'facebook': 'facebook/wav2vec2-base-960h',
10
  }
11
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  def query(filename, provider='openai'):
14
  with open(filename, "rb") as f: