Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
|
|
|
| 3 |
|
| 4 |
# Initialize clients
|
| 5 |
-
text_client = InferenceClient("
|
| 6 |
image_client = InferenceClient("SG161222/RealVisXL_V3.0")
|
| 7 |
|
| 8 |
def check_custom_responses(message: str) -> str:
|
|
@@ -294,7 +295,6 @@ Version: Xylaria-1.2.9
|
|
| 294 |
|
| 295 |
"""
|
| 296 |
|
| 297 |
-
|
| 298 |
# Gradio chat interface
|
| 299 |
demo = gr.ChatInterface(
|
| 300 |
respond,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
+
import os
|
| 4 |
|
| 5 |
# Initialize clients
|
| 6 |
+
text_client = InferenceClient("mistralai/Mistral-Nemo-Instruct-2407", token=os.environ["hf_token"])
|
| 7 |
image_client = InferenceClient("SG161222/RealVisXL_V3.0")
|
| 8 |
|
| 9 |
def check_custom_responses(message: str) -> str:
|
|
|
|
| 295 |
|
| 296 |
"""
|
| 297 |
|
|
|
|
| 298 |
# Gradio chat interface
|
| 299 |
demo = gr.ChatInterface(
|
| 300 |
respond,
|