Spaces:
Sleeping
Sleeping
Commit
·
df6ba08
1
Parent(s):
f37ed6f
try again
Browse files
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
|
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()
|