dennis-fast commited on
Commit
4eb2b3c
1 Parent(s): 8e1b2c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
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
- input = gr.inputs.Textbox(lines=2, label='User:')
17
- output = gr.outputs.Textbox(label='Elon:')
18
-
19
- gr.Interface(fn=chat,
20
- title="Chat with Elon",
21
- inputs=[input, "state"],
22
- outputs=[output, "state"],
23
- allow_screenshot=False,
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()