johnoye742 commited on
Commit
76ec0e0
1 Parent(s): a41780f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
2
  from transformers import AutoTokenizer
3
 
4
  def greet(prompt):
5
- tokenizer = AutoTokenizer.from_pretrained('bert-base-cased', return_tensors='tf')
6
 
7
- return tokenizer(prompt)
8
 
9
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
  iface.launch()
 
2
  from transformers import AutoTokenizer
3
 
4
  def greet(prompt):
5
+ pipe = pipeline("conversational", model="Amod/falcon7b-fine-tuned-therapy-merged", trust_remote_code=True)
6
 
7
+ return pipe(prompt)
8
 
9
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
  iface.launch()