Spaces:
Runtime error
Runtime error
dennis-fast
commited on
Commit
•
4eb2b3c
1
Parent(s):
8e1b2c8
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,11 @@ def chat(message, token_response):
|
|
13 |
response = tokenizer.decode(token_response[:, token_message.shape[-1]:][0], skip_special_tokens=True)
|
14 |
return response, token_response
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
allow_flagging='never').launch()
|
|
|
13 |
response = tokenizer.decode(token_response[:, token_message.shape[-1]:][0], skip_special_tokens=True)
|
14 |
return response, token_response
|
15 |
|
16 |
+
gr.Interface(fn=predict,
|
17 |
+
title="Chat with Elon",
|
18 |
+
theme="default",
|
19 |
+
css=".footer {display:none !important}",
|
20 |
+
allow_screenshot=False,
|
21 |
+
allow_flagging='never'
|
22 |
+
inputs=["User", "state"],
|
23 |
+
outputs=["Elon", "state"]).launch()
|
|