Spaces:
Runtime error
Runtime error
Peter
commited on
Commit
•
ab8d5cf
1
Parent(s):
d080a18
fixbug
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ if __name__ == "__main__":
|
|
199 |
schnellspell = build_symspell_obj()
|
200 |
else:
|
201 |
print("using neural spell checker")
|
202 |
-
grammarbot = pipeline("
|
203 |
|
204 |
print(f"using model stored here: \n {model_loc} \n")
|
205 |
iface = gr.Interface(
|
|
|
199 |
schnellspell = build_symspell_obj()
|
200 |
else:
|
201 |
print("using neural spell checker")
|
202 |
+
grammarbot = pipeline("text2text-generation", gram_model, device=device)
|
203 |
|
204 |
print(f"using model stored here: \n {model_loc} \n")
|
205 |
iface = gr.Interface(
|