bugfix
Browse files
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
|
| 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()
|