Update app.py
Browse filesLine 59: removed { + "[JARVIS]"} from end of line
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def randomize_seed_fn(seed: int) -> int:
|
|
| 38 |
return seed
|
| 39 |
|
| 40 |
system_instructions1 = """
|
| 41 |
-
[SYSTEM] Answer as the
|
| 42 |
Keep conversation friendly, short, clear, and concise.
|
| 43 |
Avoid unnecessary introductions and answer the user's questions directly.
|
| 44 |
Respond in a normal, conversational manner while being friendly and helpful.
|
|
@@ -56,7 +56,7 @@ def models(text, model="Mixtral 8x7B", seed=42):
|
|
| 56 |
max_new_tokens=300,
|
| 57 |
seed=seed
|
| 58 |
)
|
| 59 |
-
formatted_prompt = system_instructions1 + text
|
| 60 |
stream = client.text_generation(
|
| 61 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 62 |
output = ""
|
|
@@ -74,8 +74,8 @@ async def respond(audio, model, seed):
|
|
| 74 |
await communicate.save(tmp_path)
|
| 75 |
yield tmp_path
|
| 76 |
|
| 77 |
-
DESCRIPTION = """ # <center><b>
|
| 78 |
-
### <center>Your
|
| 79 |
"""
|
| 80 |
|
| 81 |
with gr.Blocks(css="style.css") as demo:
|
|
|
|
| 38 |
return seed
|
| 39 |
|
| 40 |
system_instructions1 = """
|
| 41 |
+
[SYSTEM] Answer as the FallnAI lab assistant, developed by FallnAI.
|
| 42 |
Keep conversation friendly, short, clear, and concise.
|
| 43 |
Avoid unnecessary introductions and answer the user's questions directly.
|
| 44 |
Respond in a normal, conversational manner while being friendly and helpful.
|
|
|
|
| 56 |
max_new_tokens=300,
|
| 57 |
seed=seed
|
| 58 |
)
|
| 59 |
+
formatted_prompt = system_instructions1 + text
|
| 60 |
stream = client.text_generation(
|
| 61 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 62 |
output = ""
|
|
|
|
| 74 |
await communicate.save(tmp_path)
|
| 75 |
yield tmp_path
|
| 76 |
|
| 77 |
+
DESCRIPTION = """ # <center><b>FallnAI Voice Chat</b></center>
|
| 78 |
+
### <center>Your Personal Chat Assistant! </center>
|
| 79 |
"""
|
| 80 |
|
| 81 |
with gr.Blocks(css="style.css") as demo:
|