Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -266,6 +266,7 @@
|
|
266 |
|
267 |
|
268 |
####03 3.1 8b
|
|
|
269 |
import os
|
270 |
import time
|
271 |
import spaces
|
@@ -276,8 +277,8 @@ from threading import Thread
|
|
276 |
|
277 |
MODEL_LIST = ["meta-llama/Meta-Llama-3.1-8B-Instruct"]
|
278 |
HF_TOKEN = os.environ.get("HF_API_TOKEN", None)
|
279 |
-
MODEL = os.environ.get("
|
280 |
-
|
281 |
TITLE = "<h1><center>Meta-Llama3.1-8B</center></h1>"
|
282 |
|
283 |
PLACEHOLDER = """
|
@@ -422,13 +423,13 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
|
|
422 |
render=False,
|
423 |
),
|
424 |
],
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
)
|
433 |
|
434 |
|
|
|
266 |
|
267 |
|
268 |
####03 3.1 8b
|
269 |
+
|
270 |
import os
|
271 |
import time
|
272 |
import spaces
|
|
|
277 |
|
278 |
MODEL_LIST = ["meta-llama/Meta-Llama-3.1-8B-Instruct"]
|
279 |
HF_TOKEN = os.environ.get("HF_API_TOKEN", None)
|
280 |
+
MODEL = os.environ.get("MODEL_ID")
|
281 |
+
|
282 |
TITLE = "<h1><center>Meta-Llama3.1-8B</center></h1>"
|
283 |
|
284 |
PLACEHOLDER = """
|
|
|
423 |
render=False,
|
424 |
),
|
425 |
],
|
426 |
+
examples=[
|
427 |
+
["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],
|
428 |
+
["What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."],
|
429 |
+
["Tell me a random fun fact about the Roman Empire."],
|
430 |
+
["Show me a code snippet of a website's sticky header in CSS and JavaScript."],
|
431 |
+
],
|
432 |
+
cache_examples=False,
|
433 |
)
|
434 |
|
435 |
|