ovi054 commited on
Commit
acd28ec
·
verified ·
1 Parent(s): 091b6ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -609,8 +609,8 @@ def model_predict(word):
609
  '''
610
 
611
  import gradio as gr
612
- HF_TOKEN = os.getenv("SECRET_TOKEN")
613
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "word-flag-data")
614
 
615
  demo = gr.Interface(fn=model_predict,
616
  # inputs= "paint", #New Added
@@ -629,5 +629,8 @@ demo = gr.Interface(fn=model_predict,
629
  # ["Tensorflow/workspace/images/tmpfhin6fzg.png"],
630
  # ["Tensorflow/workspace/images/tmprhqli3yl.png"],
631
  # ],
632
- article=citation_text,allow_flagging="auto",flagging_callback=hf_writer)
 
 
 
633
  demo.launch()
 
609
  '''
610
 
611
  import gradio as gr
612
+ # HF_TOKEN = os.getenv("SECRET_TOKEN")
613
+ # hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "word-flag-data")
614
 
615
  demo = gr.Interface(fn=model_predict,
616
  # inputs= "paint", #New Added
 
629
  # ["Tensorflow/workspace/images/tmpfhin6fzg.png"],
630
  # ["Tensorflow/workspace/images/tmprhqli3yl.png"],
631
  # ],
632
+ article=citation_text,
633
+ # allow_flagging="auto",
634
+ # flagging_callback=hf_writer
635
+ )
636
  demo.launch()