Spaces:
Sleeping
Sleeping
Ankit Yadav
commited on
Commit
·
7fb9c4d
1
Parent(s):
a5120df
Jarvis Model
Browse files
app.py
CHANGED
@@ -35,9 +35,9 @@ async def generate1(prompt):
|
|
35 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
|
36 |
output = ""
|
37 |
for response in stream:
|
38 |
-
output += response.token.text
|
39 |
|
40 |
-
yield
|
41 |
|
42 |
|
43 |
with gr.Blocks(css="style.css") as demo:
|
|
|
35 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=True)
|
36 |
output = ""
|
37 |
for response in stream:
|
38 |
+
output += f'{response.token.text}+'
|
39 |
|
40 |
+
yield output
|
41 |
|
42 |
|
43 |
with gr.Blocks(css="style.css") as demo:
|