cdactvm commited on
Commit
3ff7897
1 Parent(s): a92a67c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,8 +4,8 @@ import gradio as gr
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,7 +15,7 @@ def sepia(input_img, strength):
15
  sepia_img /= sepia_img.max()
16
  return sepia_img
17
 
18
- callback = gr.CSVLogger()
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():