Spaces:
Runtime error
Runtime error
BenBranyon
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -65,12 +65,22 @@ additional_inputs=[
|
|
65 |
)
|
66 |
]
|
67 |
|
68 |
-
|
69 |
fn = generater,
|
70 |
title=title,
|
71 |
description = description,
|
72 |
chatbot=chatbot,
|
73 |
additional_inputs=additional_inputs,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
)
|
75 |
|
|
|
|
|
|
|
76 |
demo.launch()
|
|
|
65 |
)
|
66 |
]
|
67 |
|
68 |
+
iface = gr.ChatInterface(
|
69 |
fn = generater,
|
70 |
title=title,
|
71 |
description = description,
|
72 |
chatbot=chatbot,
|
73 |
additional_inputs=additional_inputs,
|
74 |
+
examples=[
|
75 |
+
["Hello there! How are you doing?"],
|
76 |
+
["How many hours does it take a man to eat a Helicopter?"],
|
77 |
+
["You are a helpful and honest assistant. Always answer as helpfully as possible. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."],
|
78 |
+
["I want you to act as a spoken English teacher and improver. I will speak to you in English and you will reply to me in English to practice my spoken English. I want you to strictly correct my grammar mistakes, typos, and factual errors. I want you to ask me a question in your reply. Now let's start practicing, you could ask me a question first. Remember, I want you to strictly correct my grammar mistakes, typos, and factual errors."],
|
79 |
+
[f"I want you to act like {character} from {series}. I want you to respond and answer like {character} using the tone, manner and vocabulary {character} would use. Do not write any explanations. Only answer like {character}. You must know all of the knowledge of {character}."]
|
80 |
+
]
|
81 |
)
|
82 |
|
83 |
+
with gr.Blocks() as demo:
|
84 |
+
iface.render()
|
85 |
+
|
86 |
demo.launch()
|