Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def format_prompt(message, history):
|
|
22 |
|
23 |
def generate(prompt,history):
|
24 |
if not history:
|
25 |
-
history=[
|
26 |
seed = random.randint(1,9999999999999)
|
27 |
print(seed)
|
28 |
system_prompt = prompts.ASSISTANT
|
@@ -41,8 +41,8 @@ def generate(prompt,history):
|
|
41 |
buf = ""
|
42 |
for response in stream:
|
43 |
output += response.token.text
|
44 |
-
yield [
|
45 |
-
yield [
|
46 |
def tts(inp,voice,length,noise,width,sen_pause):
|
47 |
#print(inp)
|
48 |
#print(type(inp))
|
|
|
22 |
|
23 |
def generate(prompt,history):
|
24 |
if not history:
|
25 |
+
history=[]
|
26 |
seed = random.randint(1,9999999999999)
|
27 |
print(seed)
|
28 |
system_prompt = prompts.ASSISTANT
|
|
|
41 |
buf = ""
|
42 |
for response in stream:
|
43 |
output += response.token.text
|
44 |
+
yield [(out,output)], ""
|
45 |
+
yield [(out,output)], output
|
46 |
def tts(inp,voice,length,noise,width,sen_pause):
|
47 |
#print(inp)
|
48 |
#print(type(inp))
|