jslin09 commited on
Commit
6fbb439
1 Parent(s): b26a11d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline, set_seed
5
  import random
6
 
7
  model_name = "bloom-560m"
8
- model = AutoModelForCausalLM.from_pretrained(f"jslin09/{model_name}-finetuned-fraud")
9
  tokenizer = BloomTokenizerFast.from_pretrained(f'bigscience/{model_name}', bos_token = '<s>', eos_token = '</s>')
10
 
11
  def rnd_generate(prompt):
@@ -65,4 +65,5 @@ with gr.Blocks() as demo:
65
  btn.click(rnd_generate, inputs=[result2], outputs=[result2])
66
 
67
  if __name__ == "__main__":
68
- demo.launch()
 
 
5
  import random
6
 
7
  model_name = "bloom-560m"
8
+ model = AutoModelForCausalLM.from_pretrained(f"models/jslin09/{model_name}-finetuned-fraud")
9
  tokenizer = BloomTokenizerFast.from_pretrained(f'bigscience/{model_name}', bos_token = '<s>', eos_token = '</s>')
10
 
11
  def rnd_generate(prompt):
 
65
  btn.click(rnd_generate, inputs=[result2], outputs=[result2])
66
 
67
  if __name__ == "__main__":
68
+ demo.launch()
69
+ # gr.Interface.load("models/jslin09/bloom-560m-finetuned-fraud").launch()