Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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.
|
|
@@ -57,7 +57,7 @@ def models(text, model="Mixtral 8x7B", seed=42):
|
|
| 57 |
seed=seed
|
| 58 |
)
|
| 59 |
|
| 60 |
-
formatted_prompt = system_instructions1 + text + "[
|
| 61 |
stream = client.text_generation(
|
| 62 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 63 |
output = ""
|
|
@@ -76,9 +76,9 @@ async def respond(audio, model, seed):
|
|
| 76 |
await communicate.save(tmp_path)
|
| 77 |
yield tmp_path
|
| 78 |
|
| 79 |
-
DESCRIPTION = """ # <center><b>
|
| 80 |
-
### <center>A personal Assistant of
|
| 81 |
-
### <center>Voice Chat with
|
| 82 |
"""
|
| 83 |
|
| 84 |
with gr.Blocks(css="style.css") as demo:
|
|
|
|
| 38 |
return seed
|
| 39 |
|
| 40 |
system_instructions1 = """
|
| 41 |
+
[SYSTEM] Answer as Automata Chatbot, Made by 'Automata Intelligence'
|
| 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.
|
|
|
|
| 57 |
seed=seed
|
| 58 |
)
|
| 59 |
|
| 60 |
+
formatted_prompt = system_instructions1 + text + "[Automata chatbot]"
|
| 61 |
stream = client.text_generation(
|
| 62 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
| 63 |
output = ""
|
|
|
|
| 76 |
await communicate.save(tmp_path)
|
| 77 |
yield tmp_path
|
| 78 |
|
| 79 |
+
DESCRIPTION = """ # <center><b>Automata Chatbot⚡</b></center>
|
| 80 |
+
### <center>A personal Assistant of Automata Intelligence for YOU
|
| 81 |
+
### <center>Voice Chat with Automata chatbot</center>
|
| 82 |
"""
|
| 83 |
|
| 84 |
with gr.Blocks(css="style.css") as demo:
|