kingabzpro commited on
Commit
f7b3102
·
verified ·
1 Parent(s): 8e25709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -1,9 +1,6 @@
1
  import os
2
  import gradio as gr
3
 
4
- HF_TOKEN = os.getenv('HF_TOKEN')
5
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Rick-bot-flags")
6
-
7
  title = "Talk To Me Morty"
8
  description = """
9
  <p>
@@ -42,8 +39,6 @@ gr.Interface(fn=predict,
42
  title=title,
43
  description=description,
44
  examples=examples,
45
- flagging_callback = hf_writer,
46
- allow_flagging = "manual",
47
  inputs=["text", "state"],
48
  outputs=["chatbot", "state"],
49
  theme='gradio/seafoam').launch()
 
1
  import os
2
  import gradio as gr
3
 
 
 
 
4
  title = "Talk To Me Morty"
5
  description = """
6
  <p>
 
39
  title=title,
40
  description=description,
41
  examples=examples,
 
 
42
  inputs=["text", "state"],
43
  outputs=["chatbot", "state"],
44
  theme='gradio/seafoam').launch()