coyotte508 HF staff merve HF staff commited on
Commit
606b144
1 Parent(s): df5b2b0

Added title, description and example input to improve the UX (#108)

Browse files

- Added title, description and example input to improve the UX (a3b1e9f42ac6e571825dde51cfbf99d7a1d89bb0)


Co-authored-by: Merve Noyan <[email protected]>

Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -22,7 +22,12 @@ def predict(input, history=[]):
22
  #print('response-->>'+str(response))
23
  return response, history
24
 
 
 
 
25
  gr.Interface(fn=predict,
 
 
26
  inputs=["text", "state"],
27
  outputs=["chatbot", "state"]).launch()
28
 
 
22
  #print('response-->>'+str(response))
23
  return response, history
24
 
25
+ description = "This is a chatbot application based on the DialoGPT model of Microsoft."
26
+ title = "Chat with DialoGPT"
27
+ examples = [["What is the meaning of life?"]]
28
  gr.Interface(fn=predict,
29
+ title=title,
30
+ description=description,
31
  inputs=["text", "state"],
32
  outputs=["chatbot", "state"]).launch()
33