Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
# CSS to hide footer and customize button
|
|
@@ -69,7 +70,9 @@ footer {display:none !important}
|
|
| 69 |
"""
|
| 70 |
|
| 71 |
# Initialize the InferenceClient for chatbot
|
| 72 |
-
client = InferenceClient(
|
|
|
|
|
|
|
| 73 |
|
| 74 |
# Define the function for chatbot response
|
| 75 |
def respond(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
# CSS to hide footer and customize button
|
|
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
# Initialize the InferenceClient for chatbot
|
| 73 |
+
client = InferenceClient(
|
| 74 |
+
model="microsoft/phi-4",
|
| 75 |
+
token=os.getenv("HF_TOKEN1")
|
| 76 |
|
| 77 |
# Define the function for chatbot response
|
| 78 |
def respond(
|