beeguy commited on
Commit
1acc2f3
1 Parent(s): a498ca8
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import gradio as gr
5
  pipe = pipeline("text-generation", model="MTSAIR/multi_verse_model")
6
 
7
  def greet(name):
8
- pipe(name, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
9
- return "Hello " + name + "!!"
10
 
11
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
12
  iface.launch()
 
5
  pipe = pipeline("text-generation", model="MTSAIR/multi_verse_model")
6
 
7
  def greet(name):
8
+ res = pipe(name, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
9
+ return res[0]['generated_text']
10
 
11
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
12
  iface.launch()