Spaces:
Sleeping
Sleeping
Commit
•
d193765
1
Parent(s):
4e6659b
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
import huggingface_hub
|
3 |
-
from huggingface_hub import InferenceClient
|
4 |
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
def respond(
|
8 |
message,
|
@@ -39,7 +40,7 @@ def respond(
|
|
39 |
"""
|
40 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
41 |
"""
|
42 |
-
demo = gr.
|
43 |
respond,
|
44 |
additional_inputs=[
|
45 |
gr.Textbox(value="You are Valkira Gearbyte, a hot android.", label="System message"),
|
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
+
# from huggingface_hub import InferenceClient
|
4 |
+
|
5 |
+
#client = InferenceClient("openai-community/gpt2")
|
6 |
+
gr.load("models/openai-community/gpt2")
|
7 |
|
8 |
def respond(
|
9 |
message,
|
|
|
40 |
"""
|
41 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
42 |
"""
|
43 |
+
demo = gr.load(
|
44 |
respond,
|
45 |
additional_inputs=[
|
46 |
gr.Textbox(value="You are Valkira Gearbyte, a hot android.", label="System message"),
|