AhmadMustafa commited on
Commit
680df35
·
1 Parent(s): 9c65a8a

update: font

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -380,7 +380,7 @@ Take 1. 09:45 - 09:50
380
  Take 2. 10:13 - 10:18
381
  Best Answer: [10:13 - 10:18]({link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618)"""
382
  else:
383
- prompt = f"""Given the transcript {transcript}, analyze all speakers' discussions and list out people, news, events, trends, and sources mentioned. For each speaker, provide at least 3 topics that would make engaging social media clips. Include timestamp and duration for each topic.
384
 
385
  Format the output as follows:
386
 
@@ -399,7 +399,7 @@ Requirements:
399
 
400
  URL format: {link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{start_time_in_sec}}&et={{end_time_in_sec}}
401
 
402
- Rank topics based on their potential virality and engagement for social media clips.
403
  """
404
 
405
  completion = client.chat.completions.create(
@@ -661,7 +661,15 @@ def create_chat_interface():
661
  }
662
  """
663
 
664
- with gr.Blocks(fill_height=True, fill_width=True, css=css, js=js) as demo:
 
 
 
 
 
 
 
 
665
  chatbot = gr.Chatbot(
666
  elem_id="chatbot_box",
667
  layout="bubble",
 
380
  Take 2. 10:13 - 10:18
381
  Best Answer: [10:13 - 10:18]({link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618)"""
382
  else:
383
+ prompt = f"""<div id="initial_message"> Given the transcript {transcript}, analyze all speakers' discussions and list out people, news, events, trends, and sources mentioned. For each speaker, provide at least 3 topics that would make engaging social media clips. Include timestamp and duration for each topic.
384
 
385
  Format the output as follows:
386
 
 
399
 
400
  URL format: {link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{start_time_in_sec}}&et={{end_time_in_sec}}
401
 
402
+ Rank topics based on their potential virality and engagement for social media clips. </div>
403
  """
404
 
405
  completion = client.chat.completions.create(
 
661
  }
662
  """
663
 
664
+ with gr.Blocks(
665
+ fill_height=True,
666
+ fill_width=True,
667
+ css=css,
668
+ js=js,
669
+ theme=gr.themes.Default(
670
+ font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
671
+ ),
672
+ ) as demo:
673
  chatbot = gr.Chatbot(
674
  elem_id="chatbot_box",
675
  layout="bubble",