Doppler999
commited on
Commit
·
5421427
1
Parent(s):
0bbac0a
Remove share=True for Hugging Face Spaces compatibility
Browse files
app.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 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
|
| 6 |
-
"""
|
| 7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 8 |
|
| 9 |
def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
@@ -42,5 +39,5 @@ demo = gr.ChatInterface(
|
|
| 42 |
description="Chatbot powered by Hugging Face Inference API."
|
| 43 |
)
|
| 44 |
|
| 45 |
-
demo.launch(share=
|
| 46 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 5 |
|
| 6 |
def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
|
|
| 39 |
description="Chatbot powered by Hugging Face Inference API."
|
| 40 |
)
|
| 41 |
|
| 42 |
+
demo.launch() # Remove or set share=False
|
| 43 |
|