Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
9 |
return "I don't know you."
|
10 |
return f"Hello {profile.name}"
|
11 |
|
|
|
|
|
12 |
|
13 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
14 |
# ^ expect a gr.OAuthToken object as input to get the user's token
|
@@ -31,6 +33,7 @@ with gr.Blocks() as demo:
|
|
31 |
"\n- https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face"
|
32 |
"\n- https://huggingface.co/docs/hub/spaces-oauth"
|
33 |
)
|
|
|
34 |
gr.LoginButton()
|
35 |
# ^ add a login button to the Space
|
36 |
m1 = gr.Markdown()
|
|
|
9 |
return "I don't know you."
|
10 |
return f"Hello {profile.name}"
|
11 |
|
12 |
+
def message(message,history):
|
13 |
+
return message
|
14 |
|
15 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> str:
|
16 |
# ^ expect a gr.OAuthToken object as input to get the user's token
|
|
|
33 |
"\n- https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face"
|
34 |
"\n- https://huggingface.co/docs/hub/spaces-oauth"
|
35 |
)
|
36 |
+
gr.ChatInterface(message)
|
37 |
gr.LoginButton()
|
38 |
# ^ add a login button to the Space
|
39 |
m1 = gr.Markdown()
|