Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,19 @@ def slow_echo(message, history):
|
|
6 |
time.sleep(0.05)
|
7 |
yield "You typed: " + message[: i+1]
|
8 |
|
9 |
-
demo = gr.ChatInterface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
demo.launch()
|
|
|
6 |
time.sleep(0.05)
|
7 |
yield "You typed: " + message[: i+1]
|
8 |
|
9 |
+
demo = gr.ChatInterface(
|
10 |
+
slow_echo,
|
11 |
+
chatbot=gr.Chatbot(height=300),
|
12 |
+
textbox=gr.Textbox(placeholder="Try Pragna SFT", container=False, scale=7),
|
13 |
+
title="pragna-1b-it",
|
14 |
+
description="This is pragna-1b-it",
|
15 |
+
theme="soft",
|
16 |
+
examples=["Hello", "Am I cool?", "Are tomatoes vegetables?"],
|
17 |
+
cache_examples=True,
|
18 |
+
retry_btn=None,
|
19 |
+
undo_btn="Delete Previous",
|
20 |
+
clear_btn="Clear",
|
21 |
+
).queue()
|
22 |
|
23 |
if __name__ == "__main__":
|
24 |
demo.launch()
|