Spaces:
Sleeping
Sleeping
AFischer1985
commited on
Update run.py
Browse files
run.py
CHANGED
@@ -182,7 +182,7 @@ def multimodalResponse(message,history,dropdown):
|
|
182 |
"following the users instructions as needed.\n\nContext:"+\
|
183 |
str(context)
|
184 |
print(system)
|
185 |
-
formatted_prompt = format_prompt(system+"\n"+
|
186 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
187 |
output = ""
|
188 |
for response in stream:
|
|
|
182 |
"following the users instructions as needed.\n\nContext:"+\
|
183 |
str(context)
|
184 |
print(system)
|
185 |
+
formatted_prompt = format_prompt(system+"\n"+query, history)
|
186 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
187 |
output = ""
|
188 |
for response in stream:
|