Nick088 commited on
Commit
4253249
1 Parent(s): f6bfd01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,6 +16,7 @@ else:
16
  model.to(device)
17
 
18
  def generate(
 
19
  system_prompt,
20
  prompt,
21
  max_new_tokens,
@@ -23,8 +24,7 @@ def generate(
23
  temperature,
24
  top_p,
25
  top_k,
26
- seed,
27
- precision_model
28
  ):
29
 
30
  model = T5ForConditionalGeneration.from_pretrained("roborovski/superprompt-v1", torch_dtype=precision_model)
@@ -86,7 +86,7 @@ examples = [
86
 
87
  gr.Interface(
88
  fn=generate,
89
- inputs=[prompt, system_prompt, max_new_tokens, repetition_penalty, temperature, top_p, top_k, seed],
90
  outputs=gr.Textbox(label="Better Prompt", interactive=True),
91
  title="SuperPrompt-v1",
92
  description="Make your prompts more detailed!<br>Model used: https://huggingface.co/roborovski/superprompt-v1<br>Hugging Face Space made by [Nick088](https://linktr.ee/Nick088)",
 
16
  model.to(device)
17
 
18
  def generate(
19
+ precision_model,
20
  system_prompt,
21
  prompt,
22
  max_new_tokens,
 
24
  temperature,
25
  top_p,
26
  top_k,
27
+ seed
 
28
  ):
29
 
30
  model = T5ForConditionalGeneration.from_pretrained("roborovski/superprompt-v1", torch_dtype=precision_model)
 
86
 
87
  gr.Interface(
88
  fn=generate,
89
+ inputs=[precision_model, prompt, system_prompt, max_new_tokens, repetition_penalty, temperature, top_p, top_k, seed],
90
  outputs=gr.Textbox(label="Better Prompt", interactive=True),
91
  title="SuperPrompt-v1",
92
  description="Make your prompts more detailed!<br>Model used: https://huggingface.co/roborovski/superprompt-v1<br>Hugging Face Space made by [Nick088](https://linktr.ee/Nick088)",