invincible-jha commited on
Commit
6b3a2d9
1 Parent(s): 3e4b67c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 Real Jarvis JARVIS, Made by 'Tony Stark.'
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 + "[JARVIS]"
60
  stream = client.text_generation(
61
  formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
62
  output = ""
@@ -74,9 +74,9 @@ async def respond(audio, model, seed):
74
  await communicate.save(tmp_path)
75
  yield tmp_path
76
 
77
- DESCRIPTION = """ # <center><b>JARVIS⚡</b></center>
78
- ### <center>A personal Assistant of Tony Stark for YOU
79
- ### <center>Voice Chat with your personal Assistant</center>
80
  """
81
 
82
  with gr.Blocks(css="style.css") as demo:
 
38
  return seed
39
 
40
  system_instructions1 = """
41
+ [SYSTEM] Answer as Harvey.'
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 + "[Harvey]"
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>Harvey </b></center>
78
+ ### <center>Harvey for you
79
+ ### <center>Voice Chat with your Friend for life</center>
80
  """
81
 
82
  with gr.Blocks(css="style.css") as demo: