alanchan808 commited on
Commit
6cc3988
1 Parent(s): 5b962b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -52,7 +52,7 @@ def generate(question):
52
  pprint.pprint(ret)
53
  answer = ret['answer']
54
  sources = ret['sources']
55
- embed_video_html = ''
56
  if sources is not None and len(sources) > 0:
57
  sources = [s.strip() for s in sources.split(',')]
58
  for source in sources:
@@ -61,11 +61,14 @@ def generate(question):
61
  title="YouTube video player" frameborder="0" allow="accelerometer; autoplay;
62
  clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
63
  '''
64
- return answer, embed_video_html
65
 
66
  examples = [
67
  "Tell me step by step how to find out my dominant eye when I play tennis.",
68
- "hat do we look for in a great tennis player? Write out the essential attributes."
 
 
 
69
  ]
70
 
71
  def process_example(args):
 
52
  pprint.pprint(ret)
53
  answer = ret['answer']
54
  sources = ret['sources']
55
+ embed_video_html = '<div>'
56
  if sources is not None and len(sources) > 0:
57
  sources = [s.strip() for s in sources.split(',')]
58
  for source in sources:
 
61
  title="YouTube video player" frameborder="0" allow="accelerometer; autoplay;
62
  clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
63
  '''
64
+ return answer, embed_video_html+'</div>'
65
 
66
  examples = [
67
  "Tell me step by step how to find out my dominant eye when I play tennis.",
68
+ "What do we look for in a great tennis player? Write out the essential attributes.",
69
+ "Who has the best tennis serve? Explain in details.",
70
+ "Compare Novak and Nadal gamestyle in details. Who is better?",
71
+ "Who is the tennis GOAT?"
72
  ]
73
 
74
  def process_example(args):