Aragoner commited on
Commit
2c5063a
Β·
verified Β·
1 Parent(s): a95cf49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -36
app.py CHANGED
@@ -69,42 +69,42 @@ from threading import Thread
69
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
70
 
71
 
72
- DESCRIPTION = '''
73
- <div>
74
- <h1 style="text-align: center;">Meta Llama3 8B</h1>
75
- <p>This Space demonstrates the instruction-tuned model <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct"><b>Meta Llama3 8b Chat</b></a>. Meta Llama3 is the new open LLM and comes in two sizes: 8b and 70b. Feel free to play with it, or duplicate to run privately!</p>
76
- <p>πŸ”Ž For more details about the Llama3 release and how to use the model with <code>transformers</code>, take a look <a href="https://huggingface.co/blog/llama3">at our blog post</a>.</p>
77
- <p>πŸ¦• Looking for an even more powerful model? Check out the <a href="https://huggingface.co/chat/"><b>Hugging Chat</b></a> integration for Meta Llama 3 70b</p>
78
- </div>
79
- '''
80
-
81
- LICENSE = """
82
- <p/>
83
- ---
84
- Built with Meta Llama 3
85
- """
86
-
87
- PLACEHOLDER = """
88
- <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
89
- <img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8e75e61cc9bab22b7ce3dec85ab0e6db1da5d107/Meta_lockup_positive%20primary_RGB.jpg" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
90
- <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Meta llama3</h1>
91
- <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
92
- </div>
93
- """
94
-
95
-
96
- css = """
97
- h1 {
98
- text-align: center;
99
- display: block;
100
- }
101
- #duplicate-button {
102
- margin: auto;
103
- color: white;
104
- background: #1565c0;
105
- border-radius: 100vh;
106
- }
107
- """
108
 
109
  # Load the tokenizer and model
110
  tokenizer = AutoTokenizer.from_pretrained("Aragoner/OrpoLlama-3-8B")
 
69
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
70
 
71
 
72
+ # DESCRIPTION = '''
73
+ # <div>
74
+ # <h1 style="text-align: center;">Meta Llama3 8B</h1>
75
+ # <p>This Space demonstrates the instruction-tuned model <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct"><b>Meta Llama3 8b Chat</b></a>. Meta Llama3 is the new open LLM and comes in two sizes: 8b and 70b. Feel free to play with it, or duplicate to run privately!</p>
76
+ # <p>πŸ”Ž For more details about the Llama3 release and how to use the model with <code>transformers</code>, take a look <a href="https://huggingface.co/blog/llama3">at our blog post</a>.</p>
77
+ # <p>πŸ¦• Looking for an even more powerful model? Check out the <a href="https://huggingface.co/chat/"><b>Hugging Chat</b></a> integration for Meta Llama 3 70b</p>
78
+ # </div>
79
+ # '''
80
+
81
+ # LICENSE = """
82
+ # <p/>
83
+ # ---
84
+ # Built with Meta Llama 3
85
+ # """
86
+
87
+ # PLACEHOLDER = """
88
+ # <div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
89
+ # <img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8e75e61cc9bab22b7ce3dec85ab0e6db1da5d107/Meta_lockup_positive%20primary_RGB.jpg" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
90
+ # <h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Meta llama3</h1>
91
+ # <p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Ask me anything...</p>
92
+ # </div>
93
+ # """
94
+
95
+
96
+ # css = """
97
+ # h1 {
98
+ # text-align: center;
99
+ # display: block;
100
+ # }
101
+ # #duplicate-button {
102
+ # margin: auto;
103
+ # color: white;
104
+ # background: #1565c0;
105
+ # border-radius: 100vh;
106
+ # }
107
+ # """
108
 
109
  # Load the tokenizer and model
110
  tokenizer = AutoTokenizer.from_pretrained("Aragoner/OrpoLlama-3-8B")