Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
#SusAI ©2025 Intern Labs. v1.1.1
|
2 |
import os
|
|
|
3 |
import gradio as gr
|
4 |
from gradio_client import Client
|
5 |
from datasets import load_dataset
|
@@ -7,7 +8,7 @@ from datasets import load_dataset
|
|
7 |
ds = load_dataset("MLBtrio/genz-slang-dataset")
|
8 |
|
9 |
# Initialize Hugging Face Inference Client
|
10 |
-
client =
|
11 |
|
12 |
def chat_with_ai(message, history):
|
13 |
"""Function to get AI response from Hugging Face model."""
|
|
|
1 |
#SusAI ©2025 Intern Labs. v1.1.1
|
2 |
import os
|
3 |
+
import InferenceClient
|
4 |
import gradio as gr
|
5 |
from gradio_client import Client
|
6 |
from datasets import load_dataset
|
|
|
8 |
ds = load_dataset("MLBtrio/genz-slang-dataset")
|
9 |
|
10 |
# Initialize Hugging Face Inference Client
|
11 |
+
client = InferenceClient("HydroFlyer53/ThePickle", hf_token=os.environ["Key"])
|
12 |
|
13 |
def chat_with_ai(message, history):
|
14 |
"""Function to get AI response from Hugging Face model."""
|