yuchenlin commited on
Commit
302880f
1 Parent(s): 8df0f23

limit usage

Browse files
Files changed (3) hide show
  1. __pycache__/constant.cpython-311.pyc +0 -0
  2. app.py +1 -1
  3. constant.py +1 -1
__pycache__/constant.cpython-311.pyc CHANGED
Binary files a/__pycache__/constant.cpython-311.pyc and b/__pycache__/constant.cpython-311.pyc differ
 
app.py CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks(gr.themes.Soft(), js=js_code_label) as demo:
73
  "Mixtral-8x22B", "Yi-6B", "Yi-34B", "Llama-2-7B", "Llama-2-70B", "OLMO"]
74
  , value="Llama-3-8B", label="Base LLM name")
75
  with gr.Column():
76
- together_api_key = gr.Textbox(label="🔑 Together APIKey", placeholder="Enter your Together API Key. Leave it blank if you want to use the default API key.", type="password", elem_id="api_key")
77
  with gr.Column():
78
  with gr.Row():
79
  max_tokens = gr.Textbox(value=256, label="Max tokens")
 
73
  "Mixtral-8x22B", "Yi-6B", "Yi-34B", "Llama-2-7B", "Llama-2-70B", "OLMO"]
74
  , value="Llama-3-8B", label="Base LLM name")
75
  with gr.Column():
76
+ together_api_key = gr.Textbox(label="🔑 Together APIKey", placeholder="Enter your Together API Key. Leave it blank to use our key with limited usage.", type="password", elem_id="api_key")
77
  with gr.Column():
78
  with gr.Row():
79
  max_tokens = gr.Textbox(value=256, label="Max tokens")
constant.py CHANGED
@@ -1,7 +1,7 @@
1
  HEADER_MD = """# 💬 BaseChat: Chat with Base LLMs with URIAL
2
  [Paper](https://arxiv.org/abs/2312.01552) | [Website](https://allenai.github.io/re-align/) | [GitHub](https://github.com/Re-Align/urial) | Contact: [Yuchen Lin](https://yuchenlin.xyz/)
3
 
4
- **Talk with __BASE__ LLMs which are not fine-tuned at all.**
5
  """
6
 
7
  js_code_label = """
 
1
  HEADER_MD = """# 💬 BaseChat: Chat with Base LLMs with URIAL
2
  [Paper](https://arxiv.org/abs/2312.01552) | [Website](https://allenai.github.io/re-align/) | [GitHub](https://github.com/Re-Align/urial) | Contact: [Yuchen Lin](https://yuchenlin.xyz/)
3
 
4
+ **Talk with __BASE__ LLMs which are not fine-tuned at all. The used URIAL prompt is [here](https://github.com/Re-Align/URIAL/blob/main/urial_prompts/inst_1k_v4.help.txt.md).**
5
  """
6
 
7
  js_code_label = """