Spaces:
Sleeping
Sleeping
johnoye742
commited on
Commit
•
76ec0e0
1
Parent(s):
a41780f
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
from transformers import AutoTokenizer
|
3 |
|
4 |
def greet(prompt):
|
5 |
-
|
6 |
|
7 |
-
return
|
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()
|