Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
-
from gradio_client import Client
|
4 |
-
|
5 |
-
client = Client("Sev-X/Test-AI")
|
6 |
-
result = client.predict(
|
7 |
-
message="Hello!!",
|
8 |
-
system_message="You are a friendly Chatbot.",
|
9 |
-
max_tokens=512,
|
10 |
-
temperature=0.7,
|
11 |
-
top_p=0.95,
|
12 |
-
api_name="/chat"
|
13 |
-
)
|
14 |
-
print(result)
|
15 |
|
16 |
"""
|
17 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
"""
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|