Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import gradio as gr
|
|
4 |
import re
|
5 |
import numpy as np
|
6 |
|
7 |
-
|
8 |
-
|
9 |
|
10 |
def sepia(input_img, strength):
|
11 |
sepia_filter = strength * np.array(
|
@@ -15,7 +15,7 @@ def sepia(input_img, strength):
|
|
15 |
sepia_img /= sepia_img.max()
|
16 |
return sepia_img
|
17 |
|
18 |
-
callback =
|
19 |
|
20 |
with gr.Blocks() as demo:
|
21 |
with gr.Row():
|
|
|
4 |
import re
|
5 |
import numpy as np
|
6 |
|
7 |
+
HF_TOKEN = os.getenv('HW_TOKEN')
|
8 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "save_audio")
|
9 |
|
10 |
def sepia(input_img, strength):
|
11 |
sepia_filter = strength * np.array(
|
|
|
15 |
sepia_img /= sepia_img.max()
|
16 |
return sepia_img
|
17 |
|
18 |
+
callback = hf_writer
|
19 |
|
20 |
with gr.Blocks() as demo:
|
21 |
with gr.Row():
|