Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,14 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from gradio_client import Client
|
4 |
|
5 |
-
# Setting up environment
|
6 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
|
|
|
7 |
|
8 |
# Initializing Gradio Python Clients for the two Llama chatbots
|
9 |
-
client_llama3_1 = Client("
|
10 |
-
client_llama3 = Client("
|
11 |
|
12 |
|
13 |
css = """
|
|
|
2 |
import gradio as gr
|
3 |
from gradio_client import Client
|
4 |
|
5 |
+
# Setting up environment variables to access private spaces via Gradio clients
|
6 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
7 |
+
LLAMA_3 = os.environ.get("LLAMA_3", None)
|
8 |
+
LLAMA_3_1 = os.environ.get("LLAMA_3_1", None)
|
9 |
|
10 |
# Initializing Gradio Python Clients for the two Llama chatbots
|
11 |
+
client_llama3_1 = Client(f"{LLAMA_3_1}", hf_token=HF_TOKEN)
|
12 |
+
client_llama3 = Client(f"{LLAMA_3}", hf_token=HF_TOKEN)
|
13 |
|
14 |
|
15 |
css = """
|