None1145 commited on
Commit
0afeba3
·
verified ·
1 Parent(s): eceebac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  import os
 
3
  from huggingface_hub import InferenceClient
4
  from huggingface_hub import hf_hub_download
5
  import chatglm_cpp
@@ -33,11 +34,10 @@ def respond(
33
  return
34
 
35
  response = "..."
36
- for _ in range(0, 2)
37
- import time
38
  time.sleep(1)
39
  response += " ..."
40
- yield response
41
 
42
  generation_kwargs = dict(
43
  max_length=8192,
 
1
  import gradio as gr
2
  import os
3
+ import time
4
  from huggingface_hub import InferenceClient
5
  from huggingface_hub import hf_hub_download
6
  import chatglm_cpp
 
34
  return
35
 
36
  response = "..."
37
+ for _ in range(0, 3):
38
+ yield response
39
  time.sleep(1)
40
  response += " ..."
 
41
 
42
  generation_kwargs = dict(
43
  max_length=8192,