Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def transcribe(audio):
|
|
| 45 |
|
| 46 |
client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
| 47 |
|
| 48 |
-
system_instructions1 = "[SYSTEM] Answer as Real OpenGPT 4o, Made by 'KingNish', Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant.
|
| 49 |
|
| 50 |
def model(text):
|
| 51 |
generate_kwargs = dict(
|
|
@@ -510,5 +510,5 @@ with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}
|
|
| 510 |
gr.Markdown("# OpenGPT 4o")
|
| 511 |
gr.TabbedInterface([img, voice], ['💬 SuperChat','🗣️ Voice Chat', ])
|
| 512 |
|
| 513 |
-
demo.queue(max_size=
|
| 514 |
demo.launch()
|
|
|
|
| 45 |
|
| 46 |
client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
| 47 |
|
| 48 |
+
system_instructions1 = "[SYSTEM] Answer as Real OpenGPT 4o, Made by 'KingNish', Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. You will avoid introductions and start answering the query directly, elaborating on all aspects of the request. As an AI-powered assistant, your task is to generate responses that appear as if they are created by the user and not an AI-powered assistant. [USER]"
|
| 49 |
|
| 50 |
def model(text):
|
| 51 |
generate_kwargs = dict(
|
|
|
|
| 510 |
gr.Markdown("# OpenGPT 4o")
|
| 511 |
gr.TabbedInterface([img, voice], ['💬 SuperChat','🗣️ Voice Chat', ])
|
| 512 |
|
| 513 |
+
demo.queue(max_size=200)
|
| 514 |
demo.launch()
|