Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ client = openai.OpenAI(api_key = os.getenv("OPENAI_API_KEY"))
|
|
5 |
|
6 |
def chat(message, history):
|
7 |
for i in range(len(message)):
|
8 |
-
time.sleep(0.
|
9 |
yield "You typed: " + message[: i+1]
|
10 |
|
11 |
gr.ChatInterface(chat).launch()
|
|
|
5 |
|
6 |
def chat(message, history):
|
7 |
for i in range(len(message)):
|
8 |
+
time.sleep(0.5)
|
9 |
yield "You typed: " + message[: i+1]
|
10 |
|
11 |
gr.ChatInterface(chat).launch()
|