Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random #added here
|
| 3 |
from huggingfaceface_hub import InferenceClient
|
|
|
|
| 4 |
client = InferenceClient("microsoft/phi-4")
|
|
|
|
| 5 |
def respond(message,history):
|
| 6 |
messages = [{"role":"system", "content": "You are a friendly chatbot!"}]
|
| 7 |
if history:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random #added here
|
| 3 |
from huggingfaceface_hub import InferenceClient
|
| 4 |
+
|
| 5 |
client = InferenceClient("microsoft/phi-4")
|
| 6 |
+
|
| 7 |
def respond(message,history):
|
| 8 |
messages = [{"role":"system", "content": "You are a friendly chatbot!"}]
|
| 9 |
if history:
|