Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,10 +14,10 @@ from rich.markdown import Markdown
|
|
14 |
from rich.traceback import install
|
15 |
install() # Enable rich tracebacks for easier debugging
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
|
22 |
# Chat Interface Parameters
|
23 |
DEFAULT_TEMPERATURE = 0.9
|
|
|
14 |
from rich.traceback import install
|
15 |
install() # Enable rich tracebacks for easier debugging
|
16 |
|
17 |
+
from huggingface_hub import RepositoryInfo
|
18 |
|
19 |
+
model_info = RepositoryInfo.fetch('huggingface/models/{}/{}'.format(" Meta-Llama-3.1-8B ", MODEL_NAME))
|
20 |
+
client = InferenceClient(model_info, token=os.environ.get("HF_TOKEN"))
|
21 |
|
22 |
# Chat Interface Parameters
|
23 |
DEFAULT_TEMPERATURE = 0.9
|