dnth commited on
Commit
6e1fefe
1 Parent(s): 78dbdd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -17,15 +17,17 @@ def hello(update: Update, context: CallbackContext) -> None:
17
  intro_text = """
18
  🤖 Greetings human! \n
19
  🤗 I'm a bot hosted on Hugging Face Spaces. \n
20
- 🦾 I can query the mighty GPT-J-6B model and send you a response here. Try me.
21
- ✉️ Send me a text to start and I shall generate a response to complete your text!\n
22
- ‼️ PS: Responses are not my own (everything's from GPT-J-6B). I'm not conscious (yet).
 
 
23
  """
24
  update.message.reply_text(intro_text)
25
 
26
 
27
  def respond_to_user(update: Update, context: CallbackContext):
28
- update.message.chat.send_action(action=ChatAction.TYPING)
29
  response_text = get_gpt_response(update.message.text)
30
  update.message.reply_text(response_text)
31
 
 
17
  intro_text = """
18
  🤖 Greetings human! \n
19
  🤗 I'm a bot hosted on Hugging Face Spaces. \n
20
+ 🦾 I can query the mighty GPT-J-6B model and send you a response here. Try me.\n
21
+ ✉️ Send me a text to start and I shall generate a response to complete your text!\n\n
22
+ ‼️ PS: Responses are not my own (everything's from GPT-J-6B). I'm not conscious (yet).\n
23
+
24
+ Blog post: https://dicksonneoh.com/portfolio/deploy_gpt_hf_models_on_telegram/
25
  """
26
  update.message.reply_text(intro_text)
27
 
28
 
29
  def respond_to_user(update: Update, context: CallbackContext):
30
+ update.message.chat.send_action(action="Querying GPT-J")
31
  response_text = get_gpt_response(update.message.text)
32
  update.message.reply_text(response_text)
33