Anupam251272 commited on
Commit
5f1bd4a
Β·
verified Β·
1 Parent(s): b6fb366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -33,6 +33,7 @@ def chat_with_tendulkar(message, history):
33
 
34
  response = chat_completion.choices[0].message.content
35
 
 
36
  if "Did you know!" in response and not response.endswith("\n"):
37
  response = response.replace("Did you know!", "\nDid you know! πŸ˜‚")
38
  elif "Did you know!" in response:
@@ -67,6 +68,11 @@ with gr.Blocks(css=custom_css) as iface:
67
  "What do you think about the current state of Indian cricket?",
68
  "Any tips for improving my batting skills?",
69
  "What was your most memorable match and why?",
 
 
 
 
 
70
  ],
71
  )
72
 
 
33
 
34
  response = chat_completion.choices[0].message.content
35
 
36
+ # Ensure the "Did you know!" fact is correctly formatted
37
  if "Did you know!" in response and not response.endswith("\n"):
38
  response = response.replace("Did you know!", "\nDid you know! πŸ˜‚")
39
  elif "Did you know!" in response:
 
68
  "What do you think about the current state of Indian cricket?",
69
  "Any tips for improving my batting skills?",
70
  "What was your most memorable match and why?",
71
+ "How do you stay motivated during long cricket seasons?",
72
+ "What advice would you give to young aspiring cricketers?",
73
+ "Can you share a funny moment from your cricket career?",
74
+ "What do you think about the use of technology in cricket?",
75
+ "How do you balance your personal life with your cricket career?",
76
  ],
77
  )
78