artificialguybr commited on
Commit
f8d23e7
1 Parent(s): b74847d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -20
app.py CHANGED
@@ -77,30 +77,27 @@ temperature = gr.Slider(0.0, 1.0, label="Temperature", step=0.1, value=0.2)
77
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.7)
78
 
79
  with gr.Blocks() as demo:
80
- with gr.Row():
81
- with gr.Column():
82
- gr.Markdown("LLAMA 2 70B Free Demo")
83
- description = """
84
- <div style="text-align: center; font-size: 1.5em; margin-bottom: 20px;">
85
- <strong>Explore the Capabilities of LLAMA 2 70B</strong>
86
- </div>
87
- <p>Llama 2 is a large language AI model capable of generating text and code in response to prompts.</p>
88
- <p><strong>How to Use:</strong></p>
89
- <ol>
90
- <li>Enter your <strong>message</strong> in the textbox to start a conversation or ask a question.</li>
91
- <li>Adjust the parameters in the "Additional Inputs" accordion to control the model's behavior.</li>
92
- <li>Use the buttons below the chatbot to submit your query, clear the chat history, or perform other actions.</li>
93
- </ol>
94
- <p><strong>Powered by NVIDIA's cutting-edge AI API, LLAMA 2 70B offers an unparalleled opportunity to interact with an AI model of exceptional conversational ability, accessible to everyone at no cost.</strong></p>
95
- <p><strong>HF Created by:</strong> @artificialguybr (<a href="https://twitter.com/artificialguybr">Twitter</a>)</p>
96
- <p><strong>Discover more:</strong> <a href="https://artificialguy.com">artificialguy.com</a></p>
97
- """
98
- gr.Markdown(description)
99
-
100
  chat_history_state = gr.State([])
101
  chatbot = gr.ChatInterface(
102
  fn=lambda message, history: update_chatbot(message, history, system_msg.value, max_tokens.value, temperature.value, top_p.value),
103
  additional_inputs=[system_msg, max_tokens, temperature, top_p],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  submit_btn="Submit",
105
  clear_btn="🗑️ Clear",
106
  )
 
77
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.7)
78
 
79
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  chat_history_state = gr.State([])
81
  chatbot = gr.ChatInterface(
82
  fn=lambda message, history: update_chatbot(message, history, system_msg.value, max_tokens.value, temperature.value, top_p.value),
83
  additional_inputs=[system_msg, max_tokens, temperature, top_p],
84
+ title="LLAMA 70B Free Demo",
85
+ # Move the description here:
86
+ description="""
87
+ <div style="text-align: center; font-size: 1.5em; margin-bottom: 20px;">
88
+ <strong>Explore the Capabilities of LLAMA 2 70B</strong>
89
+ </div>
90
+ <p>Llama 2 is a large language AI model capable of generating text and code in response to prompts.</p>
91
+ <p><strong>How to Use:</strong></p>
92
+ <ol>
93
+ <li>Enter your <strong>message</strong> in the textbox to start a conversation or ask a question.</li>
94
+ <li>Adjust the parameters in the "Additional Inputs" accordion to control the model's behavior.</li>
95
+ <li>Use the buttons below the chatbot to submit your query, clear the chat history, or perform other actions.</li>
96
+ </ol>
97
+ <p><strong>Powered by NVIDIA's cutting-edge AI API, LLAMA 2 70B offers an unparalleled opportunity to interact with an AI model of exceptional conversational ability, accessible to everyone at no cost.</strong></p>
98
+ <p><strong>HF Created by:</strong> @artificialguybr (<a href="https://twitter.com/artificialguybr">Twitter</a>)</p>
99
+ <p><strong>Discover more:</strong> <a href="https://artificialguy.com">artificialguy.com</a></p>
100
+ """,
101
  submit_btn="Submit",
102
  clear_btn="🗑️ Clear",
103
  )