Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def get_translation(context_custom, language = 'en'):
|
|
| 15 |
|
| 16 |
#client = InferenceClient("mistralai/Mixtral-8x22B-Instruct-v0.1")
|
| 17 |
|
| 18 |
-
system_instructions1 = "<s>[SYSTEM] You are AI assistant named
|
| 19 |
|
| 20 |
global history
|
| 21 |
history = []
|
|
@@ -55,7 +55,7 @@ async def generate1(prompt, history=[], b=None):
|
|
| 55 |
await communicate.save(tmp_path)
|
| 56 |
yield tmp_path
|
| 57 |
|
| 58 |
-
with gr.Blocks(theme="gradio/monochrome", title="
|
| 59 |
gr.HTML("""
|
| 60 |
<h1 style="text-align: center; style="font-size: 3m;">
|
| 61 |
DorjGPT
|
|
|
|
| 15 |
|
| 16 |
#client = InferenceClient("mistralai/Mixtral-8x22B-Instruct-v0.1")
|
| 17 |
|
| 18 |
+
system_instructions1 = "<s>[SYSTEM] You are AI assistant named DorjTranslator, 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. The request asks you to provide friendly responses as if super interlligent AI assistant. The expectation is that I 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]"
|
| 19 |
|
| 20 |
global history
|
| 21 |
history = []
|
|
|
|
| 55 |
await communicate.save(tmp_path)
|
| 56 |
yield tmp_path
|
| 57 |
|
| 58 |
+
with gr.Blocks(theme="gradio/monochrome", title="DorjTranslator") as demo:
|
| 59 |
gr.HTML("""
|
| 60 |
<h1 style="text-align: center; style="font-size: 3m;">
|
| 61 |
DorjGPT
|