Locutusque commited on
Commit
0896439
1 Parent(s): 67d6e15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ import os
9
  # Install flash-attn
10
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
11
  # Initialize the model pipeline
12
- generator = pipeline('text-generation', model='Locutusque/OpenHercules-2.5-Mistral-7B', torch_dtype=torch.bfloat16)
13
  @spaces.GPU
14
  def generate_text(prompt, temperature, top_p, top_k, repetition_penalty, max_length):
15
  # Generate text using the model
@@ -44,8 +44,8 @@ iface = gr.Interface(
44
  gr.Slider(minimum=5, maximum=4096, step=5, value=1024, label="Max Length")
45
  ],
46
  outputs=gr.Textbox(label="Generated Text"),
47
- title="OpenHercules-2.5-Mistral-7B",
48
- description="Try out the OpenHercules-2.5-Mistral-7B model for free!"
49
  )
50
 
51
  iface.launch()
 
9
  # Install flash-attn
10
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
11
  # Initialize the model pipeline
12
+ generator = pipeline('text-generation', model='hydra-project/OpenHyperion-2.5-Mistral-7B', torch_dtype=torch.bfloat16)
13
  @spaces.GPU
14
  def generate_text(prompt, temperature, top_p, top_k, repetition_penalty, max_length):
15
  # Generate text using the model
 
44
  gr.Slider(minimum=5, maximum=4096, step=5, value=1024, label="Max Length")
45
  ],
46
  outputs=gr.Textbox(label="Generated Text"),
47
+ title="OpenHyperion-2.5-Mistral-7B",
48
+ description="Try out the OpenHyperion-2.5-Mistral-7B model for free!"
49
  )
50
 
51
  iface.launch()