Spaces:
Sleeping
Sleeping
Commit ·
214a45b
1
Parent(s): 69544e2
rename
Browse files
app.py
CHANGED
|
@@ -7,8 +7,8 @@ pipe = pipeline(model="ejshcwartz/decaf-v1-22b")
|
|
| 7 |
pipe.model.to("cuda")
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
-
def
|
| 11 |
return pipe(text)[0]
|
| 12 |
|
| 13 |
-
demo = gr.Interface(fn=
|
| 14 |
demo.launch()
|
|
|
|
| 7 |
pipe.model.to("cuda")
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
+
def generate(text):
|
| 11 |
return pipe(text)[0]
|
| 12 |
|
| 13 |
+
demo = gr.Interface(fn=generate, inputs="text", outputs="text")
|
| 14 |
demo.launch()
|