Spaces:
Sleeping
Sleeping
armandstrickernlp
commited on
Commit
·
30aaf10
1
Parent(s):
d498112
add title examples and description
Browse files
app.py
CHANGED
@@ -16,5 +16,12 @@ def generate_response(prompt):
|
|
16 |
|
17 |
import gradio as gr
|
18 |
|
19 |
-
iface = gr.Interface(fn=generate_response,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
iface.launch()
|
|
|
16 |
|
17 |
import gradio as gr
|
18 |
|
19 |
+
iface = gr.Interface(fn=generate_response,
|
20 |
+
inputs="text",
|
21 |
+
outputs="text"
|
22 |
+
examples=["<|context|> <|user|> I'm super hungry ! I want to go to the restaurant. <|system|> What food would you like to eat ? <|user|> Italian sounds good. <|endofcontext|>",
|
23 |
+
"<|context|> <|user|> I'm super hungry ! I want to go to the restaurant.<|endofcontext|>"],
|
24 |
+
title="gpt2-TOD",
|
25 |
+
description="Passing in a task-oriented dialogue context generates a belief state, actions to take and a response based on those actions",
|
26 |
+
)
|
27 |
iface.launch()
|