Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -262,7 +262,6 @@ class PromptGenerator:
|
|
| 262 |
class HuggingFaceInferenceNode:
|
| 263 |
def __init__(self):
|
| 264 |
self.clients = {
|
| 265 |
-
"Llama 3.1": InferenceClient("meta-llama/Meta-Llama-3.1-8B-Instruct"),
|
| 266 |
"Mixtral": InferenceClient("NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO"),
|
| 267 |
"Mistral": InferenceClient("mistralai/Mistral-7B-Instruct-v0.3"),
|
| 268 |
"Llama 3": InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct"),
|
|
@@ -383,7 +382,7 @@ def create_interface():
|
|
| 383 |
)
|
| 384 |
|
| 385 |
with gr.Tab("HuggingFace Inference Text Generator"):
|
| 386 |
-
model = gr.Dropdown(["
|
| 387 |
input_text = gr.Textbox(label="Input Text", lines=5)
|
| 388 |
happy_talk = gr.Checkbox(label="Happy Talk", value=True)
|
| 389 |
compress = gr.Checkbox(label="Compress", value=False)
|
|
|
|
| 262 |
class HuggingFaceInferenceNode:
|
| 263 |
def __init__(self):
|
| 264 |
self.clients = {
|
|
|
|
| 265 |
"Mixtral": InferenceClient("NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO"),
|
| 266 |
"Mistral": InferenceClient("mistralai/Mistral-7B-Instruct-v0.3"),
|
| 267 |
"Llama 3": InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct"),
|
|
|
|
| 382 |
)
|
| 383 |
|
| 384 |
with gr.Tab("HuggingFace Inference Text Generator"):
|
| 385 |
+
model = gr.Dropdown(["Mixtral", "Mistral", "Llama 3", "Mistral-Nemo"], label="Model", value="Llama 3")
|
| 386 |
input_text = gr.Textbox(label="Input Text", lines=5)
|
| 387 |
happy_talk = gr.Checkbox(label="Happy Talk", value=True)
|
| 388 |
compress = gr.Checkbox(label="Compress", value=False)
|