ejschwartz commited on
Commit
df6ba08
·
1 Parent(s): f37ed6f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,11 +17,11 @@ model = AutoModelForCausalLM.from_pretrained(
17
  )
18
 
19
  # Then create the pipeline with the model and tokenizer
20
- pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer)
21
 
22
  @spaces.GPU
23
  def greet(name):
24
- return pipe(name)
25
 
26
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
27
  demo.launch()
 
17
  )
18
 
19
  # Then create the pipeline with the model and tokenizer
20
+ #pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer)
21
 
22
  @spaces.GPU
23
  def greet(name):
24
+ return "what"
25
 
26
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
27
  demo.launch()