Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def givetext(input_text,lmodel,ltokenizer):
|
|
54 |
#return (ltokenizer.decode(lmodel.generate(**model_input, max_new_tokens=100)[0], skip_special_tokens=True))
|
55 |
|
56 |
def mental_chat(message, history):
|
57 |
-
return givetext(
|
58 |
|
59 |
demo = gr.ChatInterface(mental_chat)
|
60 |
|
|
|
54 |
#return (ltokenizer.decode(lmodel.generate(**model_input, max_new_tokens=100)[0], skip_special_tokens=True))
|
55 |
|
56 |
def mental_chat(message, history):
|
57 |
+
return givetext(message,newmodel,newtokenizer)
|
58 |
|
59 |
demo = gr.ChatInterface(mental_chat)
|
60 |
|