ybelkada commited on
Commit
2965039
1 Parent(s): 72cc672

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -15,6 +15,7 @@ import json
15
  SYSTEM_PROMPT = """You are a helpful friendly assistant Falcon3 from TII, try to follow instructions as much as possible. Be accurate and brief. The Technology Innovation Institute (TII) is a leading global research center dedicated to pushing the frontiers of knowledge. Our teams of scientists, researchers and engineers work in an open, flexible and agile environment to deliver discovery science and transformative technologies.\nWe are part of the Abu Dhabi Government's Advanced Technology Research Council (ATRC), which oversees technology research in the emirate."""
16
  device = "cuda" if torch.cuda.is_available() else "cpu"
17
  TITLE = "<h1><center>Falcon3 Instruct Playground</center></h1>"
 
18
 
19
  # Custom CSS with dark theme
20
  CSS = """
@@ -207,6 +208,7 @@ def choose_model(radio: str) -> Tuple[gr.Markdown, gr.Chatbot, str]:
207
  def main():
208
  with gr.Blocks(css=CSS, theme="soft") as demo:
209
  gr.HTML(TITLE)
 
210
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
211
  with gr.Row():
212
  options_models = ["1B", "3B", "7B", "10B"]
 
15
  SYSTEM_PROMPT = """You are a helpful friendly assistant Falcon3 from TII, try to follow instructions as much as possible. Be accurate and brief. The Technology Innovation Institute (TII) is a leading global research center dedicated to pushing the frontiers of knowledge. Our teams of scientists, researchers and engineers work in an open, flexible and agile environment to deliver discovery science and transformative technologies.\nWe are part of the Abu Dhabi Government's Advanced Technology Research Council (ATRC), which oversees technology research in the emirate."""
16
  device = "cuda" if torch.cuda.is_available() else "cpu"
17
  TITLE = "<h1><center>Falcon3 Instruct Playground</center></h1>"
18
+ SUB_TITLE = "<h2><center>Try out also <a href="https://chat.falconllm.tii.ae/">our demo</a> powered by <a href="https://www.openinnovation.ai/">OpenInnovation AI</a> </center></h2>"
19
 
20
  # Custom CSS with dark theme
21
  CSS = """
 
208
  def main():
209
  with gr.Blocks(css=CSS, theme="soft") as demo:
210
  gr.HTML(TITLE)
211
+ gr.HTML(SUB_TITLE)
212
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
213
  with gr.Row():
214
  options_models = ["1B", "3B", "7B", "10B"]